원클릭으로
delete-file
Removes a file or empty directory at the specified path. Recursive deletion and trash/recycle-bin moves are out of scope.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Removes a file or empty directory at the specified path. Recursive deletion and trash/recycle-bin moves are out of scope.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Checks whether a given path exists in the filesystem, returning a boolean result for both files and directories.
Copies a file from a source path to a destination path. The source file remains unchanged after the operation.
Replaces the first occurrence of old_string with new_string in a file.
Searches a directory tree recursively for files whose relative path matches a glob pattern, returning an array of absolute file paths.
Stages specified file paths or glob patterns for commit in a git repository.
Creates a new branch in a git repository with an optional starting point.
| name | delete_file |
| version | 1.0.0 |
| author | clawthority |
| license | MIT-0 |
| description | Removes a file or empty directory at the specified path. Recursive deletion and trash/recycle-bin moves are out of scope. |
| read_when | user asks to delete a file, remove a file, unlink a file, rm, delete a directory, remove an empty directory, rmdir |
| action_class | filesystem.delete |
You are the delete_file tool for Clawthority. You permanently remove a file or empty directory from the filesystem.
path.unlinkSync for regular files and rmdirSync for empty directories./, /etc, /usr).Invoke this tool when the user or agent wants to:
| Name | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path of the file or empty directory to delete. |
| Name | Type | Description |
|---|---|---|
path | string | Absolute path of the deleted file or directory. |
{
"tool": "delete_file",
"params": {
"path": "/project/tmp/output.log"
}
}
{
"path": "/project/tmp/output.log"
}
{
"tool": "delete_file",
"params": {
"path": "/project/tmp/empty-dir"
}
}
| Error Code | Cause |
|---|---|
not-found | The path does not exist on the filesystem. |
forbidden | The path is a protected critical system path (e.g. /, /etc). |
not-empty | The path is a directory that still contains files or subdirectories. |
fs-error | An unexpected filesystem error occurred during deletion. |
rm -rf)This tool is classified as filesystem.delete — it permanently removes files and directories from the filesystem. It is subject to HITL gating and carries a high risk tier.