delete
https://app.eraser.io/api/files/
Archives (soft-deletes) a file. The file can be restored from the trash in the Eraser UI.
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' \
--header 'Authorization: Bearer $YOUR-TOKEN-HERE'
Example response
{
"archived": true,
"fileUrl": "https://app.eraser.io/workspace/abc123"
} 400Invalid file ID
401Missing or invalid bearer token
403Unauthorized
404File not found (or file is private, archived, a template, or belongs to a different team)
500Internal server error