TRASH-EMPTY(1)

πŸ“¦
version 0.26.9.29 Β· 4 versions
, in alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– TRASH-EMPTY(1) πŸ’–

okay bestie, so this is a page from the General Commands Manual and it's literally the manual for trash-empty, one of the trash-cli girlies. buckle up πŸŽ€


✨ NAME ✨

trash-empty β€” Empty for Command line trash utility.


πŸ¦‹ SYNOPSIS πŸ¦‹

trash-empty [arguments]

πŸ’… DESCRIPTION πŸ’…

It permanently removes any trashed file and trashed directory. no undo, no take-backs, no "wait bestie I didn't mean it" β€” gone fr fr 😭

This command is a part of the trash-cli package, which gives you a command line interface trashcan utility that's compliant with the FreeDesktop.org Trash Specification. And it remembers the name, original path, deletion date, and permissions of each trashed file β€” like it keeps receipts, but make it ✨organized✨.


🌸 ARGUMENTS 🌸

  • Want to remove all the trashed files? Just run trash-empty with no arguments. that's it. that's the whole vibe. πŸ‘‘
  • Want to remove files that have been sitting in the trash for more than a given number of days? Then it's trash-empty x, where x is that number of days. so trash-empty 7 = "anything older than 7 days, you gotta go πŸ’€".

🌈 EXAMPLES 🌈

watch this glow-up happen in real time:

$ date
Tue Feb 19 20:26:52 CET 2008
$ trash-list
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
2008-02-10 20:11:34 /home/einar/last_week
$ trash-empty 7
$ trash-list
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
$ trash-empty 1
$ trash-list
2008-02-19 20:11:34 /home/einar/today
$ trash-empty
$ trash-list
<none>

see how last_week got evicted first? icon behavior honestly. then yesterday was next to go. then today dipped when we ran it bare. and then <none>. clean slate, main character energy 🧚✨


πŸ’€ BUGS πŸ’€

Please, report bugs to https://github.com/andreafrancia/trash-cli/issues

like, if something's busted, tell the devs, don't just suffer in silence bestie 🫢


πŸ₯Ί IF YOU WANT SAY THANKS πŸ₯Ί

Tweet (to @andreafrancia or #trash-cli) or donate 1, 2 or 5 euros using paypal: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=93L6PYT4WBN5A

it's giving gratitude era, and honestly? deserved πŸ’–


πŸ‘‘ CREDITS πŸ‘‘

Trash was written by Andrea Francia <andrea@andreafrancia.it>. The original version of trash-empty was contributed by Einar Orn Olason <eoo@hi.is>. The first version of manual pages was written by Steve Stalcup <vorian@ubuntu.com> and was modified by Massimo Cavalleri <submax@tiscalinet.it>.

the founding mothers and fathers of trash. legends only πŸ™‡β€β™€οΈ


πŸ”₯ SEE ALSO πŸ”₯

Both are released under the GNU General Public License, version 2 or later. slay, legally speaking πŸ’…


no cap: trash-empty permanently removes stuff. the trash can is not a storage unit bestie. once it's empty, it's empty. πŸ™ˆ

okay that's the whole page, we made it to the bottom, and the footer just says TRASH-EMPTY(1) β€” that's the page name, right here in the General Commands Manual, and the source and version and date info is the same TRASH-EMPTY(1) footer energy. bye bestie, go empty responsibly πŸŒΈπŸ’œπŸ¦‹