Delete an attachment from a document

delete/documents/{entityTypeName}/{documentId}/attachments/{attachmentId}

Deletes an attachment that is associated with a document. The metadata and the file that are stored by the Files service are deleted.

Request Samples

Response Samples

1Not Available

Path Parameters

NameTypeRequiredDescription
entityTypeName
string
true

The name of the entity type to which the document belongs.

documentId
string
true

The ID for the document.

attachmentId
string
true

The ID for the attachment metadata.

Responses

StatusMeaningDescription
204No Content

The attachment was deleted.

404Not Found

The attachment was not found.

Schema