Skip to content
  • Auto
  • Light
  • Dark
DiscordForumGitHubSign up
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

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: 'My API Key',
});

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

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