# Delete File

Delete a file or empty directory.

- Repository: https://github.com/openakita/openakita (2010 stars)
- Category: Engineering
- License: AGPL-3.0
- Last updated: 2026-09-24
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add openakita/openakita --skill delete-file -g -a claude-code -y`
Codex: `npx skills add openakita/openakita --skill delete-file -g -a codex -y`
Cursor: `npx skills add openakita/openakita --skill delete-file -g -a cursor -y`
Gemini CLI: `npx skills add openakita/openakita --skill delete-file -g -a gemini-cli -y`

## Description

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

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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`: 递归删除非空目录


