---
ai:
  exclude: true
search:
  tags:
    - Attachments
    - DELETE
seo:
  description: >-
    This method will delete the… Reference for the DELETE
    /rest/api/content/{id}/child/attachment/{attachmentId} endpoint in the
    Confluence Data Center API.
sidebar:
  label: Remove attachment
  badge: DELETE
title: Remove attachment
type: openapi-operation
---
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}`

**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.
- `404` — Returned if the specified attachment does not exist.
