TRASH-RM(1)
๐ TRASH-RM(1) โ the General Commands Manual era
ok so bestie, this is trash-rm, a lil icon from the trash-cli squad, and it lives in the General Commands Manual section of your system. she has one job and she does it flawlessly. periodt. โจ
๐ธ NAME ๐ธ
trash-rm โ removes files matching a pattern from the trash can ๐๏ธโจ
๐ SYNOPSIS ๐
trash-rm [PATTERN]
๐ฆ DESCRIPTION ๐ฆ
okay so basically: trash-rm removes from the trash can all the files matching the PATTERN. not some of them. not "the ones it feels like". all of them. it's giving selective, but make it thorough ๐
๐ EXAMPLE ๐
here's the vibe check, three iconic ways to use her:
$ trash-rm foo # Removes all files with name 'foo' in trash can
$ trash-rm '*.o' # Removes all files ending with '.o' in trash can
$ trash-rm /full/path # Removes all files with exactly '/full/path' as original location
so like โ a plain name, a glob, or an absolute original location. pick your fighter ๐ซถ
๐ BUGS ๐
found a bug? no gatekeeping, bestie, please report bugs to https://github.com/andreafrancia/trash-cli/issues ๐โก๏ธ๐ฎ
๐ซถ IF YOU WANT SAY THANKS ๐ซถ
ngl this is the sweetest section in any manpage ever. if you wanna say thanks, you can 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
one euro. two euros. five euros. the range is right there. main character generosity ๐ธ๐
๐ CREDITS ๐
- Trash was written by Andrea Francia
<andrea@andreafrancia.it>โจ - The original version of
trash-emptywas 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>๐ฆ
๐ COPYRIGHT ๐
Both are released under the GNU General Public License, version 2. slay, legally speaking ๐
๐ฅ SEE ALSO ๐ฅ
trash-put(1)trash-list(1)trash-empty(1)trash-restore(1)- and the FreeDesktop.org Trash Specification at https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html ๐ง
TRASH-RM(1) โ that's the whole page, bestie, you ate ๐ this was the General Commands Manual cut of trash-rm, brought to you by the trash-cli girlies, and if you ever need her again she's right there in section 1. iykyk ๐โจ๐๐ฆ๐ธ๐
๐ซถ
๐ฆ 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 noble: trash-cli 0.23.11.10-1 ยท GPL-2.0-or-later
- 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) 2012 Andrea Francia <andrea@andreafrancia.it>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms