VibeHunt
Back to browse
empty-trash-cli

empty-trash-cli

Empty the trash.

Source

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

Sign in to leave a review.

Loading reviews…

Similar apps