Benches macOS

5

Unable to delete a folder that 'is in use…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I am currently "cleaning up" our network to have all of our files on one server as they are currently on two different areas - where I am running into trouble is deleting old files that are no longer required. Every time I try to delete certain folders the message is:

*"The operation cannot be completed because the item <folder name> is in use".*

I have attempted to reboot the Mac, login as a different user and so far have been unsuccessful. The only way I have been able to delete the folder has been to head into another department and delete the folder on a PC (which strangely enough will work). There are also AppleDouble files that appear on the PC but I am leaving them alone...

Any help would be appreciated - it is annoying that I am unable to delete certain folders and files due to them being in use, when clearly they are not.

I have been reading up on the web about it and Terminal seems to be a program that I am able to use, but I am not very familiar with it at all - so any tips would be welcome.

5 replies

Sign in or join Beachball Help to reply.

  1. 0

    littleshoulders

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi Sticks1977,

    For all the info you'll need about trash problems see Dr. Smoke's excellent FAQ
    "Solving Trash Problems". In particular,
    "Files in use by other applications"

    hope that helps some,

    littleshoulders 🙂

  2. 0

    Texas Mac Man

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Sometimes it happens that the Finder just doesn't want to empty the trash anymore and says "The operation cannot be completed because the item "" is in use.". That's a good warning if it is true, but sometimes you want to get rid of an application and this warning appears even though the only thing running is the Finder. Usually after a restart you can delete it. But that is very time consuming and even then, it is sometimes still stuck not wanting to be deleted. There is a risky command that can be used in the Terminal that will empty the trash no matter what. Risky because a simple error in the syntax could erase a lot of stuff that you want to keep.

    There is a much easier and quicker way of forcing the Finder to empty the trash no matter what! It is done in the freeware customization and maintenance application
    OnyX (download @
    http://www.titanium.free.fr/pgs/english.html ). Once you loaded OnyX and entered your administrator password, choose "Cleaning" in the top bar. Click on the "Trash" tab. You can now choose whether you want to "Delete" or to "Securely Delete" (by overwriting) and click Execute. That's it, it will force the Finder to empty the trash even if the files are in use!

    Also look at these links.

    You can't empty the Trash or move a file to the Trash in Mac OS X

    http://docs.info.apple.com/article.html?artnum=106272

    Solving Trash Problems

    http://www.thexlab.com/faqs/trash.html

    How To Fix Stubborn Trash and Why it Won't Delete

    http://www.osxfaq.com/Tutorials/LearningCenter/HowTo/Trash/index.ws

    Download
    Trash It! v3.6.1 from:

    http://www.nonamescriptware.com/?page_id=5

    Download
    DropNuke from:

    http://www.versiontracker.com/dyn/moreinfo/macosx/12664

     Cheers, Tom 😉

  3. 0

    Shaun Blamire

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks to those that have answered so far... I am still having a few problems though and I think it may also have to do with the Permissions on the file.

    These files are on a separate server, and not on my hard drive. When I am to delete them from the server, they are deleted completely and they do not reside in the trash unlike other files that have been on my desktop or hard drive.

    When I look at the permission of the file, the 'Owner' is
    artsrv and the 'Group' is
    Artwork which are not the same as my Mac - Owner:
    Nudlz and Group:
    Admin on this Mac. Under the 'Access' and 'Others' section for this folder i can't delete is says Read & Write in all three areas.

    I am not sure if this is purely a PC based thing and the original files were worked on a PC and therefore the Mac does not recognise the permissions and will not delete the folder. I am also not sure that I am able to repair the permissions as these folders reside on another server and not my hard drive.

    Again any help would be appreciated - it bugs me that the only way I can delete these folders is to jump on a PC in another department and delete them via Windows (yuck!)...

    Regards, Shaun (Sticks1977)

  4. 0

    please oh please oh please

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Usually when I get that error I can place the undeletable file into a folder, and delete the folder. The folder deletes with the file inside, and it's gone. Not sure if it will work over your server, though.

  5. 0

    Klaus1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The opposite to Please's method also works:

    Delete all the files in the folder first, THEN delete the folder.