sftp_rm
Deletes a file or directory on a remote server over SFTP, with optional recursive removal for directories.
Instructions
Remove a file or directory on the remote server.
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": {
"sessionId": "<sessionId>",
"path": "<path>"
},
"name": "sftp_rm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Remote path to delete | |
| recursive | No | Delete directories recursively | |
| sessionId | Yes | SSH session ID |