sftp_remove
Delete remote files or directories on SSH servers via SFTP, with optional recursive removal for non-empty directories and safeguards to prevent accidental deletion.
Instructions
删除远程文件或目录(支持非空目录递归级联删除,内置防环保护)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recursive | No | 若为目录且非空,是否级联递归删除,默认 false(防止误删) | |
| remotePath | Yes | 待删除的远程文件或目录绝对路径 | |
| connectionId | No | 目标连接标识符,缺省时使用当前默认连接 |