Skip to main content
DELETE
/
agents
/
{agentId}
/
files
/
{fileId}
Delete Agent File
curl --request DELETE \
  --url https://api.tess.im/agents/{agentId}/files/{fileId} \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.tess.im/llms.txt

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

Code Examples

curl --request DELETE \
  --url '
 \
  --header 'Authorization: Bearer YOUR_API_KEY'

Headers

x-workspace-id
integer
Workspace ID. If not provided, the user’s selected Workspace will be used.
Note: This field will be required in a future API release. It is highly recommended to set it now to ensure compatibility with future updates.

Path Parameters

agentId
integer
required
The agent ID
fileId
integer
required
The ID of the file to delete

Resposta

{
"id": 8794,
"file": {
  "id": 73336,
  "object": "file",
  "bytes": 35504128,
  "created_at": "2025-01-05T22:39:57+00:00",
  "filename": "endpoints.pdf",
  "credits": 20.10060847168,
  "status": "completed"
},
"removed": true
}