Skills

Delete File

Delete a file or empty directory.

Install

npx skills add openakita/openakita --skill delete-file -g -a claude-code -y
Category
Engineering
Updated
1mo ago
License
AGPL-3.0
Context cost
Lightabout 101 tokens
Runs scripts
No, instructions only

What it does

Delete a file or empty directory. Non-empty directories are rejected for safety. Use run_shell for recursive deletion.

Delete File

删除文件或空目录。

Parameters

参数类型必填说明
pathstring是要删除的文件或空目录路径

Examples

删除文件:

{"path": "temp/output.txt"}

删除空目录:

{"path": "temp/empty_dir"}

Notes

  • 仅删除文件或空目录
  • 非空目录会被拒绝,需使用 run_shell 执行删除命令
  • 路径受安全策略保护

Related Skills

  • write-file: 创建文件
  • list-directory: 查看目录内容
  • run-shell: 递归删除非空目录

More in Engineering