LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

trash-rm

Remove files matching a pattern from the trash can

TLDR

Remove all files named foo from trash
$ trash-rm foo
copy
Remove all files ending with .o from trash
$ trash-rm '*.o'
copy
Remove files with a specific original path from trash
$ trash-rm /absolute/path/to/file
copy

SYNOPSIS

trash-rm PATTERN

DESCRIPTION

trash-rm removes from the trash can all files matching the given pattern. It permanently deletes matching trashed files according to the freedesktop.org Trash specification. The pattern is matched against the original file name or path.

SEE ALSO

Copied to clipboard
Kai