Delete File
删除文件或空目录。
Parameters
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| path | string | 是 | 要删除的文件或空目录路径 |
Examples
删除文件:
{"path": "temp/output.txt"}
删除空目录:
{"path": "temp/empty_dir"}
Notes
- 仅删除文件或空目录
- 非空目录会被拒绝,需使用 run_shell 执行删除命令
- 路径受安全策略保护
Related Skills
write-file: 创建文件list-directory: 查看目录内容run-shell: 递归删除非空目录