Skip to content
Sign up

Delete Block

blocks.delete(strblock_id) -> object
delete/v1/blocks/{block_id}

Delete Block

ParametersExpand Collapse
block_id: str

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

minLength42
maxLength42
ReturnsExpand Collapse
object
Delete Block
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
)
block = client.blocks.delete(
    "block-123e4567-e89b-42d3-8456-426614174000",
)
print(block)
{}
Returns Examples
{}