Delete site files
files_deleteDeletes files and folders from the site file manager. Cannot be undone.
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": {
"action": "<action>",
"site_id": "<site_id>"
},
"name": "files_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Clean path without edge slashes, passed as a parameter (never as a URL suffix). Empty string is the site root; content_get, content_put and mkdir need a non-empty path. Allowed bytes are A-Z a-z 0-9 . _ / -; segments cannot be empty, ".", "..", or start with a dot. Folder for list, info, upload, upload_url and move; file for content_get and content_put; new folder for mkdir; source for rename, move and delete. | |
| paths | No | move: sources to move; a non-empty list ignores path and always returns results per item. delete: targets, together with path. Items are clean paths. | |
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| confirm | No | Confirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do. | |
| site_id | Yes | Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose. |