Delete Agent File
Delete an agent file directly by ID.curl -X DELETE "https://api.example.com/api/v1/agent_files/1" \
-H "X-API-Key: your-api-key-here"
const fileId = 1;
const response = await fetch(`https://api.example.com/api/v1/agent_files/${fileId}`, {
method: 'DELETE',
headers: {
'X-API-Key': 'your-api-key-here'
}
});
const data = await response.json();
import requests
file_id = 1
headers = {
'X-API-Key': 'your-api-key-here'
}
response = requests.delete(
f'https://api.example.com/api/v1/agent_files/{file_id}',
headers=headers
)
data = response.json()
{
"status": {
"code": 200,
"message": "File deleted successfully"
}
}
