Delete a diagram
DELETE
https://app.eraser.io/api/files/{fileId}/diagrams/{diagramId} 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"
} Path parameters
fileId string requiredpathID of the file containing the diagram
diagramId string requiredpathID of the diagram to delete
Responses
200 – The diagram was deleted successfully
deleted boolean requiredWhether the diagram was deleted
fileUrl string requiredURL of the file that contained the diagram
{
"deleted": true,
"fileUrl": "https://app.eraser.io/workspace/abc123"
}