Mobile view — Full Site Mobile Site

Free CLI Utility

Trash management,
from the terminal.

PurgeCLI is a free, scriptable command-line trash bin manager. Create and manage trash bins, move files to trash instead of deleting them permanently, inspect and restore trashed items, and empty bins on your own schedule — all from any terminal.

Free
Always
CLI
Scriptable & cron-friendly
Safe
Restore anytime
Zero
Cloud or accounts

What’s inside

Trash bins,
done right.

🗑️
Trash Bin Creation
Create named trash bins anywhere on your system. Organize deleted files by project, date, or any scheme you choose.
📁
Move to Trash
Send files and directories to a trash bin instead of permanently deleting them — so you can recover anything you regret removing.
🔄
Restore Trashed Items
List and restore any item from a trash bin back to its original location or a destination of your choice.
🔍
Inspect Bin Contents
List the contents of any trash bin with timestamps, original paths, and file sizes before deciding what to keep or delete.
📅
Cron & Script Friendly
Automate bin emptying on a schedule. Runs headlessly in cron jobs and shell scripts with predictable exit codes.
🪶
Minimal Dependencies
Runs wherever you have a shell. No runtime requirements, no package manager installs needed.

Downloads

Get PurgeCLI.

PurgeCLI v2.5.1 Latest
Linux installer  ·  Shell script
The current stable release of PurgeCLI. Download the installer script and run it to set up PurgeCLI on your system.
Installation: After downloading, make the script executable and run it:
chmod +x purgecli-v2.5.1-installer.sh && ./purgecli-v2.5.1-installer.sh

Source and release history are available on GitHub →