LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsbackendsCompositeBackenddelete
Method●Since v1.11

delete

Delete a file or directory, routing to appropriate backend.

Parent and root deletions run sequentially across the base backend and any mounted routes below the requested path. A failure stops the fan-out so later backends are left untouched, but earlier deletions cannot be rolled back and are reported as potentially partial.

Copy
delete(filePath: string): Promise<DeleteResult>

Parameters

NameTypeDescription
filePath*string

Absolute file path

View source on GitHub