Skip to main content
DELETE
/
v1
/
files
/
{id}
Delete File
curl --request DELETE \
  --url https://api.example.com/v1/files/{id}
{
  "success": true
}
Permanently delete a file from storage.
Deletion is permanent and cannot be undone. The file will be removed from storage immediately.

Path Parameters

id
string
required
The file ID. Example: f_abc123xyz

Response

success
boolean
required
Always true on successful deletion.

Example

curl -X DELETE https://api.stashfyle.com/v1/files/f_abc123xyz \
  -H "Authorization: Bearer sk_live_xxx"
Response
{
  "success": true
}

Errors

CodeStatusDescription
unauthorized401Invalid or missing API key
not_found404File not found or already deleted