jira issue attachment delete¶
- Usage:
jira issue attachment delete KEY ATTACHMENT_ID [flags]
Delete one attachment by its Jira attachment ID. Use attachment list first when you need to discover the ID for an issue.
--dry-run previews the deletion and never contacts Jira. Live deletes require --force in headless, agent, or --no-input mode; an interactive terminal is prompted when --force is omitted.
Safety¶
--dry-run¶
Preview without deleting
--force¶
Confirm destructive removal under --no-input / non-TTY
Output fields¶
With --output json, the response envelope's data object carries these fields. Run jira agent schema for the full machine-readable schema.
| Field | Type | Description |
|---|---|---|
attachment_id |
string | |
deleted |
boolean | |
dry_run |
boolean | |
issue.id |
string | |
issue.key |
string | |
issue.self |
string |
Examples¶
jira issue attachment delete PROJ-123 10500 --dry-run # (1)!
jira issue attachment delete PROJ-123 10500 --force # (2)!
- Preview deleting an attachment
- Delete an attachment by id without a prompt