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
JavaScriptdeepagentsnodeCompositeBackenddelete
Method●Since v1.11

delete

Copy
delete(filePath: string): Promise<DeleteResult>
View source on GitHub

Parameters

NameTypeDescription
filePath*string

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.

Absolute file path