Problem
A Mac OS user encounters a problem where they are unable to permanently delete files from the trash, an error message may appear indicating it is unable to delete the files.
Applies to
- Mac OS
Resolution
In Mac OS one can force deletion of trahsed files using the steps below.
- Press COMMAND+SPACE then enter the command Terminal and press ENTER. The Terminal app will launch.
- Within Terminal window at the command prompt copy/paste the command below:
sudo rm -rf
- With the Terminal window open click on the the Trash icon in the dock to bring up the list of trashed files.
- Drag one or more files from trash into the terminal window command line. The files will then show at the end of the command entered in step two above.
- Then press ENTER to run the command to perform deletion.
- When prompted enter the password you log into your Mac with to authorise the action then press ENTER and close the Terminal window afterwards
- Then return to the Finder window showing trashed files which should no longer have the files you dragged over because they have been deleted.
Note
The above steps have been verified up to Mac OS 14 Sonoma.
Further action