ugreen_delete_file
Deletes a specified NAS file or directory, moving it to the recycle bin by default; use dry_run to verify scope, and enable recursive or permanent deletion only when explicitly required.
Instructions
删除用户指定的一个 NAS 文件或目录,默认移入回收站。recursive 默认为 false;删除目录及其内容必须明确指定 true。permanent 仅在用户明确要求永久删除时使用,永久删除不能恢复。先 dry_run 核对范围;CLI 会保护共享根目录并复核删除结果。回收站路径见 data.receipt.final_path,保存它以便恢复。仅操作用户指定的对象;写操作失败后先查询当前状态,不自动重试。权限由绿联令牌与 NAS 账户决定。
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": {
"path": "<path>"
},
"name": "ugreen_delete_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| dry_run | No | ||
| permanent | No | ||
| recursive | No |