Skip to main content
DELETE
https://api.neosantara.xyz
/
v1
/
files
/
:file_id
Delete File
curl --request DELETE \
  --url https://api.neosantara.xyz/v1/files/:file_id \
  --header 'x-api-key: <api-key>'
{
  "id": "<string>",
  "object": "<string>",
  "deleted": true
}
Delete a file. This action marks the file as deleted and removes it from storage.
file_id
string
required
The ID of the file to delete (e.g., file-abc123).

Returns

id
string
The ID of the deleted file.
object
string
The object type, which is always file.
deleted
boolean
Confirmation that the file was deleted. Always true on success.

Return Examples

Response 200
{
  "id": "file-abc123",
  "object": "file",
  "deleted": true
}
Error 404 - File Not Found
{
  "error": {
    "message": "File not found or access denied",
    "type": "invalid_request_error",
    "code": "file_not_found"
  }
}