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.
| Capability | remote.remote_delete |
|---|---|
| Area | Remote, rooms and agents |
| Access | changes files, remote |
| Reaches | process, network |
| Rights | ssh |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
hostrequired | string | Host alias from ~/.ssh/config or [user@]host[:port]. |
pathrequired | string | Absolute path of the file, link or folder. |
recursive | boolean | Delete a non-empty folder with everything in it (default false). |
dry_run | boolean | Only 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.
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" ] } }}