Delete attachment
delete_attachmentDetach a file from a wiki page using its attachment ID. Soft-deletes the attachment without removing inline embeds from the page body.
Instructions
Detach a file from a page by attachment id (editor+; ids come from list_attachments). Soft-delete. It does NOT edit the page body, so remove any inline embed separately with update_page/patch_page.
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": {
"page_id": "<page_id>",
"id": "<id>"
},
"name": "delete_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | attachment id (from list_attachments) | |
| page_id | Yes | the page the file is attached to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |