Delete AI agent
Delete AI agent
The DELETE /2.0/ai_agents/{id} endpoint allows you to delete a custom AI agent based on its ID.
Send a request
To send a request, use the DELETE /2.0/ai_agents/{id} endpoint.
cURL
curl -L DELETE "https://api.box.com/2.0/ai_agents/12345" \
-H 'Authorization: Bearer <ACCESS_TOKEN>'Node/TypeScript v10
await client.aiStudio.deleteAiAgentById(createdAgent.id);Python v10
client.ai_studio.delete_ai_agent_by_id(created_agent.id).NET v10
await client.AiStudio.DeleteAiAgentByIdAsync(agentId: createdAgent.Id);Swift v10
try await client.aiStudio.deleteAiAgentById(agentId: createdAgent.id)Java v10
client.getAiStudio().deleteAiAgentById(createdAgent.getId())Parameters
To make a call, you must pass the following parameters. Mandatory parameters are in bold.
| Parameter | Description | Example |
|---|---|---|
agent_id | The ID of the agent to delete. | 1234 |