Skip to content
Sign up

Delete template (Cloud-only)

client.templates.delete(stringtemplateName, TemplateDeleteParamsbody?, RequestOptionsoptions?): TemplateDeleteResponse { success }
delete/v1/templates/{template_name}

Deletes all versions of a template with the specified name

ParametersExpand Collapse
templateName: string
body: TemplateDeleteParams
ReturnsExpand Collapse
TemplateDeleteResponse { success }
success: boolean
Delete template (Cloud-only)
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 template = await client.templates.delete('template_name');

console.log(template.success);
{
  "success": true
}
Returns Examples
{
  "success": true
}