Delete a diagram

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

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 Params
string
required

ID of the file containing the diagram

string
required

ID of the diagram to delete

Responses

400

Invalid file ID or diagram ID

401

Missing or invalid bearer token

403

Unauthorized

404

File or diagram not found

500

Internal server error

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json