Skip to main content
DELETE
/
v2
/
files
/
{collection_id}
curl -X DELETE 'https://api.anyformat.ai/v2/files/b2c3d4e5-f6a7-8901-bcde-f12345678901/' \
  -H 'Authorization: Bearer YOUR_API_KEY'
// No response body - file successfully deleted
Delete a file and its associated results.
The collection_id in the URL is the id returned by POST /v2/files/ or POST /v2/workflows/{id}/run/.
Deleting a file is permanent and cannot be undone. All associated results will also be deleted. If the file has in-progress processing, processing will be cancelled.
curl -X DELETE 'https://api.anyformat.ai/v2/files/b2c3d4e5-f6a7-8901-bcde-f12345678901/' \
  -H 'Authorization: Bearer YOUR_API_KEY'
// No response body - file successfully deleted

Headers

authorization
string | null

Path Parameters

collection_id
string
required

Response

Successful Response