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

Open in Claude
Open in ChatGPT

Detach Identity From Agent

agents.identities.detach(stridentity_id, IdentityDetachParams**kwargs) -> object
patch/v1/agents/{agent_id}/identities/detach/{identity_id}

Detach an identity from an agent.

ParametersExpand Collapse
agent_id: str

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

minLength42
maxLength42
identity_id: str
ReturnsExpand Collapse
object
Detach Identity From Agent
from letta_client import Letta

client = Letta(
    api_key="My API Key",
)
response = client.agents.identities.detach(
    identity_id="identity_id",
    agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
)
print(response)
{}
Returns Examples
{}