IDocumentClient.DeleteDocumentAsync Method

Definition

Overloads

DeleteDocumentAsync(Uri, RequestOptions)

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

DeleteDocumentAsync(String, RequestOptions)

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

DeleteDocumentAsync(Uri, RequestOptions)

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

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Document>> DeleteDocumentAsync (Uri documentUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
documentUri
Uri

The URI of the document to delete.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

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

DeleteDocumentAsync(String, RequestOptions)

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

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

The link of the Document to delete. E.g. dbs/db_rid/colls/col_rid/docs/doc_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.