Delete a release asset
delete_release_assetDelete a release asset by attachment ID so a replacement can be uploaded without Forgejo keeping the old same-named file. Use it to clear outdated assets from a release.
Instructions
Delete one asset from a release by attachment_id (requires write mode). Used to replace a same-named asset, which Forgejo would otherwise keep alongside the new one.
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": {
"owner": "<owner>",
"repo": "<repo>",
"release_id": "<release_id>",
"attachment_id": "<attachment_id>"
},
"name": "delete_release_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name. | |
| owner | Yes | Repository owner. | |
| release_id | Yes | Release id the asset belongs to. | |
| attachment_id | Yes | Attachment id, from `list_release_assets`. |