folder_delete
Permanently deletes one or more folders and all their contents without backup or recycle bin; use to remove obsolete feature, test, or sample folders.
Instructions
Deletes one or more folders with everything in them, for good: no backup and no recycle bin; only git can bring back tracked files. Folders are deleted deepest first, so a parent and its child may be in one call. A folder that is already gone is reported as such, not as an error; a file path is refused (use file_delete), and so is the workspace root. At most 50 paths per call. REFUSED: a folder that contains a link (it could reach outside the workspace), a folder with more than 20,000 entries (delete its subfolders one at a time), and restricted folders: bin, obj, .git, .vs, .ssh, node_modules, backups, logs, packages and anything the workspace's access rules hide. WHEN TO USE: removing a feature, test or sample folder that is no longer needed. To keep the contents under another name use folder_move; for single files use file_delete. RETURNS: one line per folder: deleted, already gone, or the error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace": "<workspace>",
"pathsJson": "<pathsJson>"
},
"name": "folder_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the files guide first in the result. Use on your first files call, or when told it changed. | |
| pathsJson | Yes | JSON array of folder paths relative to the workspace root: ["Features/OldFeature", "Features/OldFeature/Models"]. Folders only, no wildcards. | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) |