trash-rm(1)

trash-rm1

Removes files matching a pattern from the trash can

Usage

trash-rm [PATTERN]

Overview

Remove from the trash can all the files matching the PATTERN.

Examples

$ 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

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

Credits

Trash was written by Andrea Francia <[email protected]>. The original version of trash-empty was contributed by Einar Orn Olason <[email protected]>. The first version of manual pages was written by Steve Stalcup <[email protected]> and was modified by Massimo Cavalleri <[email protected]>.

Releases

7 releases since Debian 8 (Jessie); the text changed 2 times.

  1. 8–9
  2. 10–12
  3. 13–Arch

Bugs

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

From trash-cli 0.24.5.26-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.