![]() You may have difficulty deleting a file if itâs been locked. If itâs a background process thatâs using the file, open Activity Monitor and terminate the process. You will see a list of the applications and processes using the file in the Terminal window.Drag the file thatâs in use from the Trash to the Terminal window.Now open Terminal and type lsof (followed by a space).Click on the Trash so that a Finder window opens up.If you want to try and identify which application is using the troublesome file, you could try the following Terminal Command: Now you should be able to empty your trash and delete the file. I tried all the known tricks, but they hadn't worked and some files in the trash kept on blocking its full emptying. I had been looking for this article for few days due to a stubborn trash that wouldn't empty. If that doesnât work, check to see if there is a startup item that is using the file, or just start up the Mac in Safe Mode â which will stop any Startup items running. How to force-empty the trash in macOS High Sierra.In that case, try restarting your Mac then attempt to empty the trash. If that doesnât work the app may still be using the file for a background process.You should now be able to empty the trash. Quit the app that you think might be using the file (or quit all open apps if you arenât sure).Be very careful where and how you use this command. Note: Any files deleted with the del command cannot be recovered. There may be a prompt asking if you want to delete the file. For example, to delete Test file.txt, just run del 'Test File.txt'. Step 2Type the command: srm -v followed by a space. To delete a file, use the following command: del ''.Here are a few solutions to delete an âin useâ file from the Trash: Read this post and learn how to secure empty trash on Mac, force empty trash on Mac or empty trash.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |