IDocumentApiClientDeleteDocumentAsync Method (String, String, DeleteDocumentQuery, DocumentHeaderProperties) |
Delete a document.
Namespace:
ArangoDBNetStandard.DocumentApi
Assembly:
ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntax Task<DeleteDocumentResponse<Object>> DeleteDocumentAsync(
string collectionName,
string documentKey,
DeleteDocumentQuery query = null,
DocumentHeaderProperties headers = null
)
Function DeleteDocumentAsync (
collectionName As String,
documentKey As String,
Optional query As DeleteDocumentQuery = Nothing,
Optional headers As DocumentHeaderProperties = Nothing
) As Task(Of DeleteDocumentResponse(Of Object))
Task<DeleteDocumentResponse<Object^>^>^ DeleteDocumentAsync(
String^ collectionName,
String^ documentKey,
DeleteDocumentQuery^ query = nullptr,
DocumentHeaderProperties^ headers = nullptr
)
abstract DeleteDocumentAsync :
collectionName : string *
documentKey : string *
?query : DeleteDocumentQuery *
?headers : DocumentHeaderProperties
(* Defaults:
let _query = defaultArg query null
let _headers = defaultArg headers null
*)
-> Task<DeleteDocumentResponse<Object>>
Parameters
- collectionName
- Type: SystemString
- documentKey
- Type: SystemString
- query (Optional)
- Type: ArangoDBNetStandard.DocumentApi.ModelsDeleteDocumentQuery
- headers (Optional)
- Type: ArangoDBNetStandard.DocumentApi.ModelsDocumentHeaderProperties
The DocumentHeaderProperties values.
Return Value
Type:
TaskDeleteDocumentResponseObjectRemarks
This method overload is provided as a convenience when the client does not care about the type of
Old
in the returned
DeleteDocumentResponseT. Its value will be
null when
ReturnOld is either
false or not set, so this overload is useful in the default case
when deleting documents.
See Also