# `bird compliance attachments delete`

## Usage

```bash
bird compliance attachments delete <attachment-id> [flags]
```

## Description

Delete an uploaded registration attachment. This works only while nothing cites it, which is the case worth acting on: a file uploaded by mistake can be cleaned up before a registration names it. Once a registration cites the attachment it is kept as evidence and this returns `409`.

This is destructive and cannot be undone; pass --yes to confirm.

## Examples

```bash
bird compliance attachments delete <id> --yes
```

## Options

#### Safety

| Name                | Description                                                    |
| ------------------- | -------------------------------------------------------------- |
| `--idempotency-key` | Deduplication key; a retry with the same key won't act twice   |
| `--yes`             | Confirm a destructive action (required; the CLI never prompts) |

## Related

| Name                                                                                      | Description                      |
| ----------------------------------------------------------------------------------------- | -------------------------------- |
| [`bird compliance attachments list`](/docs/cli/reference/compliance-attachments-list)     | List registration attachments    |
| [`bird compliance attachments upload`](/docs/cli/reference/compliance-attachments-upload) | Create a registration attachment |