Can't delete files from Airport time capsule drive

I have an airport time capsule drive which I use for Time machine but also as a network drive.


On that network drive I have several folders with probably several thousand files I would like to delete.


I try to select the main folder containing all these files and "move to trash". It will calculate the amount of files that needs to be deleted but then will come up with an error saying it can't delete because file XXXX is in use.


Of course it is not in use and it just prevents me from deleting those files.


It's driving me crazy.


Also as part of the cleanup I'm doing I am trying to copy some large folders over to another drive but that will fail as well giving me Error -50 which I have no idea what it means.


Any help? I couldn't find anything in a search.

Posted on Sep 1, 2019 11:45 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 2, 2019 10:11 AM

Holding down the option key will sometimes allow a file to be deleted when the normal delete won't work.


Since the files were transferred from another drive, it looks like you might have a "permissions" issue. Unfortunately, Apple added a lot of new security in High Sierra and added even more in Mojave, which has created a number of issues for users with older files, or files that were transferred from another Mac or another hard drive.


Right-Click on a folder and then click on Get Info

Another window will open with information about the file

Look for the Sharing and Permissions section at the bottom of the window


Ideally, you would want the folder/file to read "Everyone" and "Read & Write" since that will normally allow any user or any Mac to access the files and copy, delete, etc.


If still no luck, you might want to try a utility like Graveyard. It has worked well for me in the past, but I cannot predict how well.....or if.....it will work for you.


https://www.macupdate.com/app/mac/23914/graveyard


If some of the Mac "Terminal" gurus see this post, they might be able to post some commands that perform the same tasks that Graveyard purports to do. The Terminal is a scary place for most of us, so extra care is essential.


If changing the permissions works to allow deleting a folder/file, it might also work if you are trying to copy files and move them to another destination.



Similar questions

12 replies
Question marked as Top-ranking reply

Sep 2, 2019 10:11 AM in response to Dazoti

Holding down the option key will sometimes allow a file to be deleted when the normal delete won't work.


Since the files were transferred from another drive, it looks like you might have a "permissions" issue. Unfortunately, Apple added a lot of new security in High Sierra and added even more in Mojave, which has created a number of issues for users with older files, or files that were transferred from another Mac or another hard drive.


Right-Click on a folder and then click on Get Info

Another window will open with information about the file

Look for the Sharing and Permissions section at the bottom of the window


Ideally, you would want the folder/file to read "Everyone" and "Read & Write" since that will normally allow any user or any Mac to access the files and copy, delete, etc.


If still no luck, you might want to try a utility like Graveyard. It has worked well for me in the past, but I cannot predict how well.....or if.....it will work for you.


https://www.macupdate.com/app/mac/23914/graveyard


If some of the Mac "Terminal" gurus see this post, they might be able to post some commands that perform the same tasks that Graveyard purports to do. The Terminal is a scary place for most of us, so extra care is essential.


If changing the permissions works to allow deleting a folder/file, it might also work if you are trying to copy files and move them to another destination.



Sep 2, 2019 2:35 PM in response to Tesserax

Here’s the thing, I don’t think any process is really using them. It’s a bug.


I have a folder with 100 or so images. Right click the folder and try to delete. It tells me the first file is in use.


Go into the folder and delete the first file (which sometimes works). Try to delete the folder, now the second file is “in use”.


Go into the folder again, select all files. Delete all of them (which works). The go back and delete the empty folder.


The problem is I have a lot of folder and I can’t do it with each one. It takes so much time.

Sep 2, 2019 2:45 PM in response to Dazoti

Sorry, I can see that that would be a pain in the ...


When you decided to use your Time Capsule for both Time Machine and as a pseudo file server, did you create a disk image on the TC's internal drive to store these files ... or just added them to the same partition as the backups? If you did the latter, may be the reason this is being so difficult.


When I wanted to experiment with one of my TCs for this dual-purpose, I found using a disk image worked well, and I had no issue deleting it afterwards. I really don't have any experience with the other method of co-sharing ... and if that's the route you took, I'm afraid I can't offer anything else for you to try. Sorry!

Sep 2, 2019 11:35 AM in response to Dazoti

See if the following will work for you:


  • Double-click on the Trash and make sure that it opens up in a Finder window.
  • Run the macOS Terminal.
  • You’ll will be typing in a simple command at the Terminal command prompt — but don’t hit return just yet!
  • Enter the following command, followed by a space: lsof
  • Then, drag the problematic file/folder from the Trash directly onto the Terminal window.
  • After some text shows up, hit Return.
  • You should now see a list of the apps that processes that are actively using the file (and keeping it from being deleted). You should simply try closing those apps.


If it isn't an app, but a process instead, run the Activity Monitor. Find that process, and then, click on "X" to terminate it.


Sep 2, 2019 3:15 PM in response to Dazoti

Perhaps the easiest way around the problem is to do an archive of the TC.. you will need a USB drive of equal size to the TC hard disk or larger.. plug it in and run archive.

Then erase the TC disk.. it will remove all the files without any hassle.. copy back from the hard disk only what you need but make sure you use disk image to do it rather than just create folders directly on the drive as per Tesserax comment.


Another method that maybe worth a try is to fix the permissions using the old airport utility.

See https://discussions.apple.com/thread/8375787?answerId=33349536022#33349536022

I wrote up the method.. to install 5.6.1 in recent Mac OS just search google for 5.6.1 launcher.


If you have a windows computer available or a friend that is prepared to help.. sometimes windows explorer has less issues than Mac.. and you can use 5.6.1 utility windows version.


Finally.. and this is getting really super complicated.

You can do it directly from the TC interface by turning on SSH access.

I will point you to instructions.. but you need to understand a fair amount of low level terminal instructions.. or trust me.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't delete files from Airport time capsule drive

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.