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.
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 |