Delete an attachment
DELETE/api/v1/workspaces/{slug}/projects/{project_id}/work-items/{issue_id}/attachments/{pk}/
Permanently remove an attachment from a work item. Records deletion activity for audit purposes.
Path Parameters
issue_id:requiredstringIssue id.
pk:requiredstringAttachment ID
project_id:requiredstringProject ID
slug:requiredstringWorkspace slug
Scopes
projects.work_items.attachments:write
Delete an attachment
bash
curl -X DELETE \
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/attachments/550e8400-e29b-41d4-a716-446655440000/" \
-H "X-API-Key: $PLANE_API_KEY"python
import requests
response = requests.delete(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/attachments/550e8400-e29b-41d4-a716-446655440000/",
headers={"X-API-Key": "your-api-key"}
)
print(response.status_code)javascript
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/attachments/550e8400-e29b-41d4-a716-446655440000/",
{
method: "DELETE",
headers: {
"X-API-Key": "your-api-key",
},
}
);
console.log(response.status);Response204
No response body.

