Skip to content
Sign up

Delete Identity

identities.delete(stridentity_id) -> object
delete/v1/identities/{identity_id}

Delete an identity by its identifier key

ParametersExpand Collapse
identity_id: str

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

minLength45
maxLength45
ReturnsExpand Collapse
object
Delete Identity
import os
from letta_client import Letta

client = Letta(
    api_key=os.environ.get("LETTA_API_KEY"),  # This is the default and can be omitted
)
identity = client.identities.delete(
    "identity-123e4567-e89b-42d3-8456-426614174000",
)
print(identity)
{}
Returns Examples
{}