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

Open in Claude
Open in ChatGPT

Delete File From Folder

folders.files.delete(strfile_id, FileDeleteParams**kwargs)
delete/v1/folders/{folder_id}/{file_id}

Delete a file from a folder.

ParametersExpand Collapse
folder_id: str

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

minLength43
maxLength43
file_id: str

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

minLength41
maxLength41
Delete File From Folder
from letta_client import Letta

client = Letta(
    api_key="My API Key",
)
client.folders.files.delete(
    file_id="file-123e4567-e89b-42d3-8456-426614174000",
    folder_id="source-123e4567-e89b-42d3-8456-426614174000",
)
Returns Examples