Delete File (Move to Trash)
Delete File (Move to Trash)
Delete File (Move to Trash)
Moves a file to trash instead of permanently deleting it. The file can typically be restored later depending on the system’s trash management.
Method: DELETE
URL: {{base_url}}/files/{{file_id}}
This endpoint requires authentication.
Authorization header:Notes:
If your collection/folder already sets auth, this request can inherit auth.
Ensure {{access_token}} is a valid, non-expired token.
Set these variables at the environment or collection level:
Example request URL:
A successful request typically returns HTTP 200 OK.
400 Bad Request
file_id401 Unauthorized / 403 Forbidden
Missing/invalid Authorization header
Expired {{access_token}}
404 Not Found
file_id does not existThis endpoint performs a soft delete by moving the file to trash.
The file is not permanently deleted immediately.
The file may be restored later if the system supports trash recovery.
Permanent deletion may require a separate endpoint or automatic cleanup policy.