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

Open in Claude
Open in ChatGPT

Delete File From Folder

client.folders.files.delete(stringfileID, FileDeleteParams { folder_id } params, RequestOptionsoptions?): void
delete/v1/folders/{folder_id}/{file_id}

Delete a file from a folder.

ParametersExpand Collapse
fileID: string

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

minLength41
maxLength41
params: FileDeleteParams { folder_id }
folder_id: string

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

minLength43
maxLength43
Delete File From Folder
import Letta from '@letta-ai/letta-client';

const client = new Letta({
  apiKey: 'My API Key',
});

await client.folders.files.delete('file-123e4567-e89b-42d3-8456-426614174000', {
  folder_id: 'source-123e4567-e89b-42d3-8456-426614174000',
});
Returns Examples