TRASH(8) System Manager's Manual TRASH(8)

trashMoves files and directories to the user trash folder

trash [-h] [--help] [-s] [-stopOnError] [-v] [--verbose] FILE [FILE...]

The trash moves files and directories into the user trash folder. The options are as follows:

|
display usage information for the tool and exit
|
display more verbose status
|
exit with an error if any move to a trash folder fails

In a directory with a file named "Foo.txt" and a directory "Bar",

trash Foo.txt Bar

moves the file and directory into the user's trash folder, if it exists and permissions allow the items to be moved into the user's trash folder.

First appeared in macOS 14.0

May 25, 2022 macOS