Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Remove attachment

This method will delete the attachment identified by attachmentId.

It returns a boolean response indicating whether the operation was successful or not. If the specified attachment or version does not exist, or if the user does not have permission to remove the attachment, appropriate exceptions are thrown and mapped to their corresponding HTTP responses.

DELETE/rest/api/content/{id}/child/attachment/{attachmentId}
Path parameters
attachmentIdstringrequired

the id of the attachment to be removed.

idstringrequired

The id of the content the attachment is on.

Responses
204

Returns no response if the specified attachment is successfully removed.

400

Returned if the user does not have permission to remove the attachment.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
404

Returned if the specified attachment does not exist.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X DELETE 'http://example.com:7990/confluence/rest/api/content/string/child/attachment/string' \
  -H 'Accept: application/json'
Response
Returns no response if the specified attachment is successfully removed.

Was this page helpful?