Home > Questions

Can't delete files from external hard drive on Mac because the file is in use?

Since upgrading to macOS Ventura, I can't delete files from my exFAT external hard drive on Mac. It gives me an error reading "The operation can't be completed because the item is in use." FYI, the files are in the Trash folder. I tried to delete on a Windows PC, it worked. But I want to be able to delete the files on my Mac. I tried Safe Mode but the issue remains. Can you help me delete these files from my external hard drive on Mac?

Best Answered by

iBoysoft author Jenny Zeng

Jenny Zeng

Answered on Monday, April 29, 2024

The error "The operation can't be completed because the item is in use" indicates the file you're trying to delete or empty from Trash is currently being used by another application or process. To fix it, try the following methods.

Quit the application or process that may be using the file

The first step is to locate the application or process that's using the file, preventing it to be deleted from your external hard drive on Mac. If you have no idea what may be using it, run the following command in Terminal. (In Terminal, type lsof followed by a single space, then drag and drop the file to the Terminal window and press Enter.)

lsof path_to_file

If the file is in use by an application, quit it.

If the file is in use by a background process, terminate it in Activity Monitor after researching whether it's safe to quit it.

Force delete the file in use from Terminal

If you still can't delete the file from your external hard drive, try force deleting it using the following command in Terminal.

rm -f path_to_file

Log out and log back in your Mac

What else you can try is to log out of your current account and log back in. This will close all apps and processes that are currently running, stopping any of them using the file. You can also try a reboot.

Downgrade macOS

Since the issue began after you upgraded to macOS Ventura, you can downgrade Ventura to Monterey to resolve the issue. 

Read Also:

[Solutions]Can't Delete Files on External Hard Drive Mac

 

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

sd card reader not working

SD Card Reader Not Working, How to Fix?

The SD card reader not working stops you from reading your SD card and memory card. You can fix the card reader to make the SD card work again.

How to Tips

Zusammenfassung des Scanner-Problems auf dem Mac

Mac-Scanner Probleme: Funktioniert nicht/Zeigt nicht an/Verbindet nicht (Lösungen)

Anleitungen, um zu lernen, wie man das Problem löst, dass der Scanner nicht angezeigt wird, nicht funktioniert, keine Verbindung herstellt und keine Scanoptionen auf dem Mac hat, mit 8 nützlichen Methoden und warum treten diese Scanning-Probleme auf.

Launchpad funktioniert nicht auf Mac

Launchpad funktioniert nicht / öffnet nicht / wird nicht angezeigt auf dem Mac, Warum & Lösung

Befolgen Sie diesen Beitrag, um zu erfahren, wie Sie das Launchpad reparieren, das nicht funktioniert oder sich nicht öffnet auf Ihrem Mac, und erfahren Sie auch die Gründe, warum es nicht funktioniert.