Skip to main content
Glama

folder_delete

Remove folders from Unity projects to manage project structure and clean up unused assets. Specify a path to delete folders and optionally remove all contents recursively.

Instructions

Delete a folder from Unity project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath of the folder to delete
recursiveNoDelete all contents recursively (default: true)

Implementation Reference

  • Handler logic for the 'folder_delete' tool. Validates the 'path' parameter and calls the adapter's deleteFolder method with optional 'recursive' flag. Returns success message.
    case 'folder_delete': { if (!args.path) { throw new Error('path is required'); } await this.adapter.deleteFolder(args.path, args.recursive); return { content: [{ type: 'text', text: `Folder deleted successfully: ${args.path}` }] };
  • Input schema definition for the 'folder_delete' tool, specifying required 'path' and optional 'recursive' boolean.
    { name: 'folder_delete', description: 'Delete a folder from Unity project', inputSchema: { type: 'object', properties: { path: { type: 'string', description: 'Path of the folder to delete' }, recursive: { type: 'boolean', description: 'Delete all contents recursively (default: true)' } }, required: ['path'] }
  • Helper method in UnityHttpAdapter that sends HTTP request to Unity server endpoint 'folder/delete' with path and recursive parameters.
    async deleteFolder(path: string, recursive: boolean = true): Promise<{ path: string }> { return this.call('folder/delete', { path, recursive }); }

Latest Blog Posts

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/zabaglione/mcp-server-unity'

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