Delete a workspace page attachment
DELETE/api/v1/workspaces/{workspace_slug}/pages/{page_id}/attachments/{attachment_id}/
Soft-delete an attachment from an editable workspace page. Later metadata and download requests return 404. Locked or archived pages cannot be changed.
Path Parameters
workspace_slug:requiredstringThe workspace's unique slug.
page_id:requiredstringThe workspace page UUID.
attachment_id:requiredstringThe attachment asset UUID.
Scopes
write or wiki.pages:write
Delete an attachment
bash
curl -X DELETE "https://api.plane.so/api/v1/workspaces/my-workspace/pages/page-uuid/attachments/attachment-uuid/" -H "X-API-Key: $PLANE_API_KEY"python
import requests
response = requests.delete("https://api.plane.so/api/v1/workspaces/my-workspace/pages/page-uuid/attachments/attachment-uuid/", headers={"X-API-Key": "your-api-key"})
print(response.status_code)javascript
// Run this example server-side. Browser apps must call your backend to keep the API key secret.
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/pages/page-uuid/attachments/attachment-uuid/",
{ method: "DELETE", headers: { "X-API-Key": process.env.PLANE_API_KEY } },
);Response204
No response body.

