Skip to main content
DELETE
/
files
/
delete
/
{file_id}
curl -X DELETE https://api.u1.archetypeai.app/v0.5/files/delete/file-abc123 \
  -H "Authorization: Bearer $ATAI_API_KEY"
{
  "is_valid": true,
  "file_id": "file-abc123",
  "file_uid": "8f2c1e5a-7b3d-4d9e-9c1a-2f5b7d8e4a6c"
}

Documentation Index

Fetch the complete documentation index at: https://docs.archetypeai.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

This endpoint deletes a file from the authenticated organization. The file is removed from the available files list and its contents are scheduled for deletion from storage.

Path Parameters

file_id
string
required
Identifier of the file to delete (returned by Upload File or Complete Upload)

Response

is_valid
boolean
Whether the deletion was successful. Check this field to detect errors.
file_id
string
Identifier of the file that was deleted
file_uid
string
Internal unique identifier of the deleted file
curl -X DELETE https://api.u1.archetypeai.app/v0.5/files/delete/file-abc123 \
  -H "Authorization: Bearer $ATAI_API_KEY"
{
  "is_valid": true,
  "file_id": "file-abc123",
  "file_uid": "8f2c1e5a-7b3d-4d9e-9c1a-2f5b7d8e4a6c"
}