How To Force Empty Trash On Mac Using Terminal

How To Force Empty Trash On Mac Using Terminal

Sometimes you want to delete data permanently from your Mac, but the data seems too important for Mac that it doesn’t delete it permanently. There can be many reasons for the same, the item deleted could still be in use or locked or maybe the item has a special character. However, if you still want the item to be removed permanently, it can be done!

You can force empty trash on Mac for good with the help of Terminal.

Note: For older versions, you can force the items in the trash bin to delete permanently by using sudo Ek-rf ~/.Trash/*.

Read Also: How To Delete Duplicate Images From Photos App on iPhone and Mac?

If you are using a higher version such as El Capitan or Sierra, follow through:

Keyboard Shortcuts:

Before using the terminal, you can use force empty Mac Trash bin with shortcuts. Go to Trash and select the item that you want to delete by Control-click and select Delete. You can hold down the Option key while you try emptying Trash.

If none of the above methods works, we can always use Terminal to force the trash to empty on Mac.

How to Force Empty Trash Bin on a Mac Using Terminal?

On your desktop, look for a magnifying glass at the top right-hand side corner to bring up Spotlight.

  • Type Terminal to launch Terminal on your Mac.
  • Enter the below-mentioned command on Terminal without pressing Enter afterward
  • Sudo rm -R
  • While typing the command, make sure there should be space after R to make the command work.
  • Now Control-click on Trash icon to launch it.
  • Select all the files present in the Trash bin folder.
  • Drag and drop the files into Terminal Window.
  • Hit Enter.
  • To execute the command, enter your admin password. Hit enter again.

Note: when you will enter the password into Terminal, you will not see the password being typed.

Read Also : How to Restore Your Mac With Time Machine

Thus, you can force empty into the trash bin. The process might take a little bit more time if there are large files in Trash.

Try it and let us know whether it worked for you or not, if the process is not executed like it is supposed to be, you might have forgotten to add space after R. Repeat the process by adding space after R. In this way you can force empty trash on Mac with ease.

Srishti Sisodia is a technical content journalist at Systweak Software. Apart from being a capable engineer, her affinity for inscription draws her towards writing interesting content about contemporary technologies and progressions. She is an avid reader and a fare connoisseur. She relishes different cuisines and when it comes to baking, she takes the cake!

Show your support

Clapping shows how much you appreciated Srishti Sisodia story.

0 thought on “How To Force Empty Trash On Mac Using Terminal”

Leave a Reply

Your email address will not be published. Required fields are marked *