delete_attachment
Remove an attachment from a page by specifying collective ID, page ID, and filename. Returns the deleted attachment's ID so you can restore it if needed.
Instructions
Delete an attachment from a page. Returns the deleted attachment including its id, which restore_attachment needs to undo this.
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": {
"collectiveId": "<collectiveId>",
"pageId": "<pageId>",
"filename": "<filename>"
},
"name": "delete_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| filename | Yes | Attachment filename to delete. | |
| collectiveId | Yes |