/// <summary> /// Deletes a recipient from an envelope. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='envelopeId'> /// The id of the envelope/bulk. /// </param> /// <param name='recipientId'> /// The id of an recipient in the bulk or envelope. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> DeleteRecipientAsync(this IRecipient operations, string envelopeId, string recipientId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteRecipientWithHttpMessagesAsync(envelopeId, recipientId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }