Permanently Delete File
Permanently Delete File
Permanently deletes a file from the system. This action cannot be undone.
Method: DELETE
URL: {{base_url}}/files/{{file_id}}/force
Authentication
This endpoint requires authentication.
- Recommended: Bearer token in the
Authorizationheader:
Notes:
-
If your collection/folder already sets auth, this request can inherit auth.
-
Ensure
{{access_token}}is a valid, non-expired token.
Required variables
Set these variables at the environment or collection level:
Path Parameters
Example request URL:
Sample request
Sample success response
A successful request typically returns HTTP 200 OK.
Common errors
-
400 Bad Request
- Invalid or missing
file_id
- Invalid or missing
-
401 Unauthorized / 403 Forbidden
-
Missing/invalid
Authorizationheader -
Expired
{{access_token}}
-
-
404 Not Found
- File with the given
file_iddoes not exist
- File with the given
Notes
-
This endpoint permanently deletes the file from the system and storage.
-
The file cannot be restored after this operation.
-
Typically used for files that are already in trash and need to be removed permanently.
-
Use the Delete File (Move to Trash) endpoint first if you want a reversible deletion.
