DocumentDbClient.DeleteDocumentAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Delete a document (V2)
public virtual System.Threading.Tasks.Task DeleteDocumentAsync(string azureCosmosDBAccountName, string databaseId, string collectionId, string documentId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteDocumentAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteDocumentAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DeleteDocumentAsync (azureCosmosDBAccountName As String, databaseId As String, collectionId As String, documentId As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- azureCosmosDBAccountName
- String
Azure Cosmos DB account name
- databaseId
- String
Database ID
- collectionId
- String
Collection ID
- documentId
- String
Document ID
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Remarks
Delete a document (V2).