sftp_delete
Delete a remote file or directory via SFTP. Provide absolute path and connection ID. Set isDirectory=true for folders.
Instructions
[SSH Operations] Delete file or directory on remote host via SFTP
Example usage:
{
"connectionId": "raspberry-pi",
"remotePath": "/home/pi/file.txt",
"isDirectory": false
}SECURITY WARNING: Deletion is permanent and cannot be undone. Remote path must be absolute. Set isDirectory=true to delete directories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remotePath | Yes | Absolute path to remote file or directory to delete | |
| isDirectory | No | Set to true to delete a directory (default: false) | |
| connectionId | Yes | ID of the SSH connection to use |