delete-path
星标12
分支0
更新时间2026年4月1日 23:40
Delete a file or directory (recursively if directory)
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Delete a file or directory (recursively if directory)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Search the web for up-to-date information using Tavily API
Press a combination of keys simultaneously (e.g., Ctrl+C, Alt+Tab)
Press a single key on the keyboard
Perform a mouse left-click at specified screen coordinates
Perform a mouse double-click at specified screen coordinates
Perform a mouse right-click at specified screen coordinates
| name | delete-path |
| description | Delete a file or directory (recursively if directory) |
| context | fork |
| args | [{"name":"path","description":"Path to the file or directory to delete","required":true}] |
| tags | ["delete","remove","rm"] |
| category | system |
| version | 1.0.0 |
| author | cognitrix |
| allowed-tools | ["bash"] |
| safety | {"risk-level":"high"} |
Delete a file or directory.
rm "$(arg path)"rm -r "$(arg path)"ls -ld "$(arg path)"ls to verify file/dir is gone-r for recursive deletion (removes all contents)-i flag for interactive mode (prompts before each deletion): rm -ri-f to force and ignore non-existent files: rm -rfrm * deletes everything in current directory)ls first to verify what will be deleted