v1

latestOpenAPI 3.1.02026-07-2418848.0 KB

Delete a diagram

Permanently deletes a diagram from a file's canvas. This action cannot be undone.

delete/api/files/{fileId}/diagrams/{diagramId}

Path parameters

fileIdstring required

ID of the file containing the diagram

diagramIdstring required

ID of the diagram to delete

Response

The diagram was deleted successfully

deletedboolean required

Whether the diagram was deleted

fileUrlstring required

URL of the file that contained the diagram

Example response

{
  "deleted": true,
  "fileUrl": "https://app.eraser.io/workspace/abc123"
}