DELETE /agents/{agentId}/files/{fileId}
Delete a specific file associated with an agent.
Code Examples
curl --request DELETE \
--url 'https://api.tess.im/agents/{agentId}/files/{fileId}' \
--header 'Authorization: Bearer YOUR_API_KEY'
| Parameter | Type | Required | Description |
|---|
| x-workspace-id | integer | No | ID of the workspace. If not provided, the user’s selected workspace will be used. |
Note: This field will be required in a future release of the API. It is highly recommended to set it now to ensure compatibility with future updates.
Path Parameters
| Parameter | Type | Required | Description |
|---|
| agentId | string | Yes | The ID of the agent |
| fileId | string | Yes | The ID of the file to delete |
Response
{
"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
}