delete
https://app.eraser.io/api/files//diagrams/
Permanently deletes a diagram from a file's canvas. This action cannot be undone.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Example request
curl --location --request DELETE 'https://app.eraser.io/api/files/abc123/diagrams/diag1' \
--header 'Authorization: Bearer $YOUR-TOKEN-HERE'
Example response
{
"deleted": true,
"fileUrl": "https://app.eraser.io/workspace/abc123"
} 400Invalid file ID or diagram ID
401Missing or invalid bearer token
403Unauthorized
404File or diagram not found
500Internal server error