Skip to main content

Delete Agent File

DELETE /api/agents/{agentId}/files/{fileId}

Delete a specific file associated with an agent.

Code Examples

curl --request DELETE \
--url 'https://tess.pareto.io/api/agents/{agentId}/files/{fileId}' \
--header 'Authorization: Bearer YOUR_API_KEY'

Path Parameters

ParameterTypeRequiredDescription
agentIdstringYesThe ID of the agent
fileIdstringYesThe 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
}

Try it out!

Authentication

This endpoint requires Bearer token authentication.

Test Endpoint