![]() You may have difficulty deleting a file if it’s been locked. Delete Immediately is a feature introduced by Apple with OS X (macOS) 10.11 El Capitan that bypasses the trash when you delete a file. So when you want to clear disk space on Mac, do remember to empty the Trash. It is an often overlooked step, even for some users this may be sound obvious. When you drag files to Trash, these data are not removed from Mac thoroughly. Click on Finder in the menu bar and select Preferences. From here, you can go ahead and empty the trash. Last thing to clear disk on Mac is to empty the Trash. If it’s a background process that’s using the file, open Activity Monitor and terminate the process. With that out of the way, follow these steps to enable the auto-delete Trash option on your Mac: Open Finder. 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: Force empty trash using Terminal Put your undesired documents in a new folder Now, right-click this folder to reveal Services. Now you should be able to empty your trash and delete the file. 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.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.But if macOS thinks a file is in use by an application or the system, even that bypass doesn’t help. Its funny how simple that is from the command line. From the Mac command line (Terminal) you just do this: rm -rf /.Trash/. You should now be able to empty the trash. macOS prompts you when you try to delete items using Option plus Finder > Empty Trash. Graphically, you right-click the Trash Can icon, then select the Empty menu option. Quit the app that you think might be using the file (or quit all open apps if you aren’t sure).Here are a few solutions to delete an “in use” file from the Trash:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |