Delete a Docmost attachment
delete_attachmentPermanently remove a file or image uploaded to a Docmost page by attachment ID. Requires space admin rights; pages still showing it will display a broken image or link.
Instructions
Permanently deletes a file or image uploaded to a page, which needs space admin rights, leaving a broken image or link wherever the page still shows it.
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": {
"attachmentId": "<attachmentId>"
},
"name": "delete_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachmentId | Yes | Attachment id from list_attachments. |