Topics Map > Apple Device Management
Topics Map > Operating Systems > Mac
Mac OSX - Secure Empty Trash
With the introduction of OSX El Capitan, the ability to securely empty the trash must be done within Terminal. NOTE: ALL ITEMS DELETED IN THIS WAY ARE IRREVERSIBLE.
Access the Terminal (OSX version of command prompt) by:
- Using Spotlight search (command+Space bar) and type in "Terminal"
- Navigate to your Applications Folder --> Utilities--> Terminal
To perform a "Secure Empty Trash" command
- Type in: cd ~/.trash into the command line prompt and press "enter". The line basically means 'take me to the hidden trash directory'
- Type in: lsand press "enter" This step is not entirely necessary but recommended. This command stands for 'list' and it will list all files within the trash directory. This is recommended so that you may be sure these are the files you wish to remove as you can not get them back.
- Type in: srm -rv ~/.trash and press "enter".This line tells your computer to securely remove the items in the folder specified.
- You may be prompted by the operating system asking if you are sure you would like to remove these files. NOTE: This is irreversible. Type 'y' for yes.
To perform a "Secure Empty Trash" command for OS X El Captian (10.11.+)
- Type in srm -v (for one file) or srm -rv (for an entire directory).
- Drag and drop the file (or folder if using srm -rv) into the Terminal window. This will put the files or folder path into the command line.
- Hit the RETURN key to permanently delete the file or folder path. NOTE: This is irreversible.