Archive a file
DELETE
https://app.eraser.io/api/files/{fileId} 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"
} Path parameters
fileId string requiredpathID of the file to archive
Responses
200 – The file was archived successfully
archived boolean requiredWhether the file was archived
fileUrl string requiredURL of the archived file
{
"archived": true,
"fileUrl": "https://app.eraser.io/workspace/abc123"
}