delete_issue_attachment
Delete a specific attachment from a Gitea issue permanently using its attachment ID. Retrieve the ID via list_issue_attachments and confirm before removal.
Instructions
Delete one issue attachment by attachment_id (get the id from list_issue_attachments). IRREVERSIBLE. Confirm the attachment id with the user first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"index": "<index>",
"attachment_id": "<attachment_id>"
},
"name": "delete_issue_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| index | Yes | Issue number | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| attachment_id | Yes | Attachment ID |