Delete attachment
delete_attachmentDetach a file from a wiki page by attachment id. Removes the attachment without editing the page body; remove inline embeds separately.
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 |