Skip to content

remote_delete

MCP tools › Remote, rooms and agents

Delete a file, link (never followed) or empty folder on an SSH host; a non-empty folder only with recursive: true. /, the home folder and folders that hold it are always refused. dry_run defaults to true and reports how many entries a folder holds (needs ssh); dry_run=false needs the user-granted ssh right and is logged in .ferris-idea/agent-log.jsonl.

Capabilityremote.remote_delete
AreaRemote, rooms and agents
Accesschanges files, remote
Reachesprocess, network
Rightsssh
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
hostrequiredstringHost alias from ~/.ssh/config or [user@]host[:port].
pathrequiredstringAbsolute path of the file, link or folder.
recursivebooleanDelete a non-empty folder with everything in it (default false).
dry_runbooleanOnly describe the change (default true; reads how many entries a folder holds).

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project remote_delete '{"host":"<string>","path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"host",
"path"
],
"properties": {
"host": {
"description": "Host alias from `~/.ssh/config` or `[user@]host[:port]`.",
"type": "string"
},
"path": {
"description": "Absolute path of the file, link or folder.",
"type": "string"
},
"recursive": {
"description": "Delete a non-empty folder with everything in it (default false).",
"type": [
"boolean",
"null"
]
},
"dry_run": {
"description": "Only describe the change (default true; reads how many entries a folder holds).",
"type": [
"boolean",
"null"
]
}
}
}