Skip to main content
Glama

Filesystem MCP Server

delete_directory

Remove a directory from the filesystem, with options to delete recursively or only if empty. Supports both relative and absolute paths for precise file management.

Instructions

Removes a directory. Optionally removes recursively. Accepts relative or absolute paths.

Input Schema

NameRequiredDescriptionDefault
pathYesThe path to the directory to delete. Can be relative or absolute.
recursiveNoIf true, delete the directory and all its contents. If false, only delete if the directory is empty.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "path": { "description": "The path to the directory to delete. Can be relative or absolute.", "minLength": 1, "type": "string" }, "recursive": { "default": false, "description": "If true, delete the directory and all its contents. If false, only delete if the directory is empty.", "type": "boolean" } }, "required": [ "path" ], "type": "object" }

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/cyanheads/filesystem-mcp-server'

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