Box Developer Documentation

A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.

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.

ParameterDescriptionExample
agent_idThe ID of the agent to delete.1234