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