The Trash in Mac OS X contains options that we don’t know about, we present these little tricks to make working with the Trash easier.
- To delete one or more files: just select the files to delete and press command + delete this is similar to the Windows delete key.
- To restore a file from the Trash: If you accidentally deleted a file and sent it to the trash, you can restore it with command + delete from the same Mac OS X Trash.
- Empty bin: with Shift + Command + DeleteAnd you can empty the Trash without entering it, just accept the warning message.
- empty trash can no warning: if you are sure of everything, you want to empty the trash and you do not want to accept the warning message, press: Shift+Option+Command+Delete.
Set automatic deletion of files after 30 days
One of the features included in MacOS Sierra is that you can set the Trash to delete files after 30 days, a feature we saw in iOS a few versions ago and is now available in Sierra.
To configure this option you must:
- Open Finder
- going to the menu bar opens the preferences.
- Open advanced.
- Check the box to delete items from the trash after 30 days.
With this option selected, you no longer have to worry about emptying your Trash since every day files that are 30 days old will be automatically deleted.
If for some reason you cannot empty the trash using the commands or the empty button, try the terminal with the following command line:
- Open the terminal from the projector.
- Type: sudo rm -rf ~/Trash/*
- press enter
- Enter the user’s password.
- press enter
If the error persists, visit the apple support.