delete-file
Delete a file or empty directory. Non-empty directories are rejected for safety. Use run_shell for recursive deletion.
Best use case
delete-file is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Delete a file or empty directory. Non-empty directories are rejected for safety. Use run_shell for recursive deletion.
Teams using delete-file should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/delete-file/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How delete-file Compares
| Feature / Agent | delete-file | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Delete a file or empty directory. Non-empty directories are rejected for safety. Use run_shell for recursive deletion.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Delete File
删除文件或空目录。
## Parameters
| 参数 | 类型 | 必填 | 说明 |
|-----|------|-----|------|
| path | string | 是 | 要删除的文件或空目录路径 |
## Examples
**删除文件**:
```json
{"path": "temp/output.txt"}
```
**删除空目录**:
```json
{"path": "temp/empty_dir"}
```
## Notes
- 仅删除文件或空目录
- 非空目录会被拒绝,需使用 run_shell 执行删除命令
- 路径受安全策略保护
## Related Skills
- `write-file`: 创建文件
- `list-directory`: 查看目录内容
- `run-shell`: 递归删除非空目录Related Skills
write-file
Write content to file, creating new or overwriting existing. When you need to create new files, update file content, or save generated code/data.
update-user-profile
Update user profile information when user shares preferences, habits, or work details. When you need to save user preferences, remember user's work domain, or provide personalized service.
skip-profile-question
Skip profile question when user explicitly refuses to answer. When user says 'I don't want to answer' or 'skip this question', use this tool to stop asking about that item.
read-file
Read file content for text files. When you need to check file content, analyze code or data, or get configuration values.
get-voice-file
Get local file path of voice message sent by user. When user sends voice message, system auto-downloads it. When you need to process user's voice message or transcribe voice to text.
get-user-profile
Get current user profile summary to understand user's preferences and context. When you need to check known user info or personalize responses.
get-image-file
Get local file path of image sent by user. When user sends image, system auto-downloads it. When you need to process user's image or analyze image content.
edit-file
Edit file by exact string replacement. Finds old_string and replaces with new_string. Safer and more token-efficient than write_file for modifying existing files. Auto-handles Windows CRLF line endings.
openakita/skills@file-manager
File and directory management tool for creating, reading, writing, deleting, moving, copying, and searching files. Use this skill when the user needs to perform file operations, list directories, search by pattern or content, or get file metadata like size and modification time.
openakita/skills@yuque-skills
Manage Yuque (语雀) knowledge bases, documents, and team collaboration through API integration. Supports personal search, weekly reports, knowledge base management, document CRUD, and group collaboration workflows. Based on yuque/yuque-skills.
openakita/skills@youtube-summarizer
Summarize YouTube videos by extracting transcripts and generating structured notes. Use when the user wants to summarize a YouTube video, extract key points from a talk, create study notes from a lecture, or get timestamps for important moments. Supports multiple URL formats and languages.
openakita/skills@xlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.