Skip to content
Sign up

Delete Agent

client.agents.delete(stringagentID, RequestOptionsoptions?): AgentDeleteResponse
delete/v1/agents/{agent_id}

Delete an agent.

ParametersExpand Collapse
agentID: string

The ID of the agent in the format 'agent-'

minLength42
maxLength42
ReturnsExpand Collapse
AgentDeleteResponse = unknown
Delete Agent
import Letta from '@letta-ai/letta-client';

const client = new Letta({
  apiKey: process.env['LETTA_API_KEY'], // This is the default and can be omitted
});

const agent = await client.agents.delete('agent-123e4567-e89b-42d3-8456-426614174000');

console.log(agent);
{}
Returns Examples
{}