Delete a file
cURL
curl --request DELETE \ --url https://api.anyapi.ai/v1/files/{file_id} \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "object": "file", "deleted": true }
Bearer token authentication. Get your API key from the dashboard.
The ID of the file to delete
Successful response
The file identifier
The object type, which is always 'file'
file
Whether the file was successfully deleted