Box Developer Documentation
Latest version

Delete AI agent

delete
https://api.box.com/2.0
/ai_agents/:agent_id

This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

Deletes an AI agent using the provided parameters.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
1234

The ID of the agent to delete.

Response

none

A successful response with no content.

application/jsonClient error

An unexpected client error.

application/jsonClient error

Returned if the AI agent is not found.

application/jsonClient error

An unexpected server error.

delete
Delete AI agent
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

Learn more about Box SDK versionig strategy.


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())