Skip to content
Sign up

Delete Block

client.blocks.delete(stringblockID, RequestOptionsoptions?): BlockDeleteResponse
delete/v1/blocks/{block_id}

Delete Block

ParametersExpand Collapse
blockID: string

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

minLength42
maxLength42
ReturnsExpand Collapse
BlockDeleteResponse = unknown
Delete Block
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 block = await client.blocks.delete('block-123e4567-e89b-42d3-8456-426614174000');

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