Delete file or folder
deleteRemove one Nextcloud file or folder; confirm:true is required, folders also need recursive:true, and the files root cannot be removed.
Instructions
Delete one file or one folder. Requires confirm: true. Deleting a folder also requires recursive: true because Nextcloud removes the folder's contents. Refuses the files root. There is no recursive account wipe and no multi-path delete.
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>",
"confirm": "<confirm>"
},
"name": "delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or folder path relative to the Nextcloud files root. | |
| confirm | Yes | Must be true. The tool refuses to delete otherwise. | |
| recursive | No | Must be true to delete a folder. Nextcloud DELETE on a folder removes everything inside it. |