# deleteAttachment

> Mutation in domain **Assets**

- HTML: [deleteAttachment.html](deleteAttachment.html)
- Raw SDL: [deleteAttachment.sdl](deleteAttachment.sdl)
- Covered by: [llms.txt](../llms.txt)

Delete an existing `Attachment`. Requires `basic:write` scope to be accessible and `Asset` permission level `EDIT`.

## Returns

`DeleteAttachment`

## Arguments

- `input`: `DeleteAttachmentInput!` — `DeleteAttachment` input argument.

## Example

```graphql
mutation DeleteAttachment {
  deleteAttachment(
    input: {
      id: "…"
    }
  ) {
    __typename
    id
  }
}
```

Raw: [`deleteAttachment.example.sdl`](deleteAttachment.example.sdl)
