How to empty the trash from the terminal on macOS

Updated April 04, 2019 · Published March 02, 2019

You can empty the trash from the terminal, or from a shell script you just wrote, with a simple command.

rm -rf ~/.Trash/*