Delete a folder
delete_folderDeletes a folder. An empty one just goes; one with pages is refused (folder_not_empty, listing them) unless withPages is true, which deletes every page under it with its route and file (template sites; ask the user first, and dryRun lists them). A folder holding a collection's items is refused: move or delete the collection first. Saved at once, like every edit in Xodia; pushing to Git and publishing stay the user's. The site plan follows in the same change.
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": {
"path": "<path>",
"projectId": "<projectId>"
},
"name": "delete_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The folder to delete | |
| branch | No | Optional branch; default the branch the workspace has open | |
| dryRun | No | Only list the pages it holds; deletes nothing | |
| projectId | Yes | Project id from list_projects | |
| withPages | No | Also delete every page under it, with their routes and files (template sites). Ask the user first |