Stack Engineer

Empty Trash from the Terminal on macOS

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

rm -rf ~/.Trash/*