OS X – Empty Trash Command Line

Examples

apple-logo

It is possible to empty the trash in OS X from the command line by running the following command in the terminal:

rm -Rf ~/.Trash/*

This command permanently removes all the files you have placed in your OS X trash bin.

2 Comments

2 Comments

  1. Michael  •  Aug 14, 2009 @01:59

    I tried this and repeatedly get the following:
    rm: No match.

    What does that mean?

  2. Ryan  •  Aug 14, 2009 @08:21

    You probably have a problem with your PATH configuration. Take a look at your .bash_profile (or .bashrc) file. I’m surprised your machine would run at all if /bin is not in your path.

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>