Skip to main content
Glama

Project Explorer MCP Server

delete_file

Remove a file or directory permanently within allowed paths. Set 'recursive' to true for non-empty directories and 'force' for read-only files. Use with caution as the action is irreversible.

Instructions

Delete a file or directory. Use with extreme caution as this operation cannot be undone. When deleting directories, all contents will be permanently removed. The recursive option must be explicitly set to true to delete non-empty directories. Only works within allowed directories.

Input Schema

NameRequiredDescriptionDefault
forceNoSet to true to force deletion even if file is read-only. Use with caution.
pathYesPath to the file or directory to delete
recursiveNoSet to true to delete directories and their contents recursively. Required for non-empty directories.

Input Schema (JSON Schema)

{ "additionalProperties": false, "properties": { "force": { "default": false, "description": "Set to true to force deletion even if file is read-only. Use with caution.", "type": "boolean" }, "path": { "description": "Path to the file or directory to delete", "type": "string" }, "recursive": { "default": false, "description": "Set to true to delete directories and their contents recursively. Required for non-empty directories.", "type": "boolean" } }, "required": [ "path" ], "type": "object" }
Install Server

Other Tools from Project Explorer MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MausRundung362/mcp-explorer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server