IDocumentClient.DeleteUserAsync Method

Definition

Overloads

DeleteUserAsync(String, RequestOptions)

Delete a User as an asynchronous operation in the Azure DocumentDB database service.

DeleteUserAsync(Uri, RequestOptions)

Delete a user as an asynchronous operation in the Azure DocumentDB database service.

DeleteUserAsync(String, RequestOptions)

Delete a User as an asynchronous operation in the Azure DocumentDB database service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.User>> DeleteUserAsync (string userLink, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
userLink
String

The link of the User to delete. E.g. dbs/db_rid/users/user_rid/

options
RequestOptions

(Optional) The RequestOptionsfor this request.

Returns

A System.Threading.Tasks containing a ResourceResponse<TResource> which will contain information about the request issued.

DeleteUserAsync(Uri, RequestOptions)

Delete a user as an asynchronous operation in the Azure DocumentDB database service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.User>> DeleteUserAsync (Uri userUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
userUri
Uri

The URI of the user to delete.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

The task object representing the service response for the asynchronous operation.