TRASH-EMPTY(1)
π 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-emptywith 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, wherexis that number of days. sotrash-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 π₯
trash-put(1)trash-list(1)trash-restore(1)trash-rm(1)- and the FreeDesktop.org Trash Specification at
https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html
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 πΈππ¦
π¦ where this page comes from
- alpine 3.24: trash-cli-doc 0.24.5.26-r1 Β· GPL-2.0-or-later
- arch rolling: trash-cli 0.24.5.26-3 Β· GPL-2.0-only
- debian trixie: trash-cli 0.24.5.26-0.3 Β· GPL-2.0-or-later
- fedora 43: trash-cli 0.24.5.26-15.fc43 Β· GPL-2.0-or-later
- fedora 44: trash-cli 0.24.5.26-18.fc44 Β· GPL-2.0-or-later
- fedora 44: trash-cli 0.26.9.29-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: trash-cli 0.24.5.26
- nixpkgs unstable: trash-cli 0.26.9.29
- ubuntu questing: trash-cli 0.24.5.26-0.3
- ubuntu resolute: trash-cli 0.24.5.26-0.3build1 Β· GPL-2.0-or-later
- ubuntu stonking: trash-cli 0.24.5.26-0.3build1 Β· GPL-2.0-or-later
- Copyright (C) 2008 Steve Stalcup <vorian@ubuntu.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms