empty-trash-cli
Empty the trash.
The tool provides a command‑line interface for emptying the system trash or on macOS, Linux, and Windows. After installing globally via npm, invoking the command without arguments clears the contents of the user’s trash folder, while a `--help` flag displays usage information. It is designed for users who prefer scriptable or terminal‑based workflows and need a quick way to remove all trashed items without opening a graphical file manager.
Implemented as a stable, core CLI utility, the package works across the three major desktop operating systems, handling the platform‑specific locations of the trash directory internally. The command is lightweight and can be incorporated into shell scripts, automation pipelines, or scheduled tasks to maintain disk space automatically.
The project is related to other utilities such as the `empty-trash` API module and `trash-cli`, which focus on moving files to the trash rather than emptying it. This separation allows developers to choose between managing trash contents directly or using higher‑level file‑deletion APIs.
Reviews
Loading reviews…
Similar apps
Terminals & CLI
trash-cli
Move files and directories to the trash.
File Management & Transfer
del-cli
Delete files and folders.
File Management & Transfer
file-type-cli
Detect the file type of a file or stdin.
Display & Accessibility
wallpaper-cli
Get or set the desktop wallpaper.
File Management & Transfer
cpy-cli
Copies files.
Terminals & CLI
strip-json-comments-cli
Strip comments from JSON.