Skip to main content
DELETE
/
files
/
{file_id}
Delete file
curl --request DELETE \
  --url https://api.anyapi.ai/v1/files/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "file",
  "deleted": true
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Path Parameters

file_id
string
required

The ID of the file to delete

Response

Successful response

id
string
required

The file identifier

object
enum<string>
required

The object type, which is always 'file'

Available options:
file
deleted
boolean
required

Whether the file was successfully deleted

I