Delete item
nextcloud_delete_itemDelete a file or folder from Nextcloud by moving it to the trash bin; specify the path and optionally confirm this destructive action.
Instructions
Delete one file or folder (it moves to the trash bin).
DELETE /remote.php/dav/files/{user}/{path}
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>"
},
"name": "nextcloud_delete_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| confirm | No | Explicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt. |