IDocumentClient.DeleteAttachmentAsync
Method
Definition
Overloads
| DeleteAttachmentAsync(String, RequestOptions) |
Delete an Attachment from the database as an asynchronous operation in the Azure DocumentDB database service. |
| DeleteAttachmentAsync(Uri, RequestOptions) |
Delete an attachment as an asynchronous operation in the Azure DocumentDB database service. |
DeleteAttachmentAsync(String, RequestOptions)
Delete an Attachment from the database as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Attachment>> DeleteAttachmentAsync (string attachmentLink, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- attachmentLink
- String
The link of the Attachment to delete. E.g. dbs/db_rid/colls/col_rid/docs/doc_rid/attachments/attachment_rid/
- options
- RequestOptions
(Optional) The RequestOptionsfor this request.
A System.Threading.Tasks containing a ResourceResponse<TResource> which will contain information about the request issued.
DeleteAttachmentAsync(Uri, RequestOptions)
Delete an attachment as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Attachment>> DeleteAttachmentAsync (Uri attachmentUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- attachmentUri
- Uri
The URI of the attachment to delete.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
The task object representing the service response for the asynchronous operation.