Skip to content
  • Auto
  • Light
  • Dark

Delete

Delete Agent Route for an Agent
client.agents.routes.delete(stringchildAgentUuid, RouteDeleteParams { parent_agent_uuid } params, RequestOptionsoptions?): RouteDeleteResponse { child_agent_uuid, parent_agent_uuid }
delete/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}

To delete an agent route from a parent agent, send a DELETE request to /v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}.

ParametersExpand Collapse
childAgentUuid: string
params: RouteDeleteParams { parent_agent_uuid }
parent_agent_uuid: string

Pagent agent id

ReturnsExpand Collapse
RouteDeleteResponse { child_agent_uuid, parent_agent_uuid }

Information about a removed linkage

child_agent_uuid?: string

Routed agent id

parent_agent_uuid?: string

Pagent agent id

Delete Agent Route for an Agent
import Gradient from '@digitalocean/gradient';

const client = new Gradient();

const route = await client.agents.routes.delete('"123e4567-e89b-12d3-a456-426614174000"', {
  parent_agent_uuid: '"123e4567-e89b-12d3-a456-426614174000"',
});

console.log(route.child_agent_uuid);
{
  "child_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "parent_agent_uuid": "123e4567-e89b-12d3-a456-426614174000"
}
Returns Examples
{
  "child_agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "parent_agent_uuid": "123e4567-e89b-12d3-a456-426614174000"
}