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

1

Response Samples

1Not Available

Path Parameters

NameTypeRequiredDescription
attachmentId
string
true

The ID for the attachment metadata.

documentId
string
true

The ID for the document.

entityTypeName
string
true

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

Responses

StatusMeaningDescription
204No Content

The attachment was deleted.

404Not Found

The attachment was not found.

Schema