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

delete

Delete a path, recursively removing anything nested under it.

This method is optional. Backends that do not implement it should omit it; callers that need broad backend compatibility should check for support before calling.

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

Parameters

NameTypeDescription
filePath*string

Absolute path to delete (a file, or a directory/prefix to remove recursively).

View source on GitHub