Deleting an "in use" folder

Hi,

I am trying to delete a folder on my computer and when I choose to empty the trash, a message states that the folder couldn't be deleted because it is in use. There are no other programs running on my computer and from what I can tell, it is NOT in use. Is there any way I can get arround this?

Cosmo

** The folder is not locked, either. I checked that under the "Get Info" area. **

2 Power Mac G5's, 20/30 Screens, Mac OS X (10.4.5), 2 iMac's, 1 G3 Powerbook, 1 G4 Powerbook

Posted on Jun 24, 2006 10:42 AM

Reply
6 replies

Jun 24, 2006 11:44 AM in response to Cosmo

We can't see the name or location of the folder. Or what the files inside are or group it belongs to.

it isn't about the system or library, so "repair permissions" isn't likely going to do anything, though you might want to delete using root and secure delete. Might want to change ownership and group to yourself and then 'apply to enclosed files and folders."

I sometimes find Adobe will lock a file or folder, or owned by root, and use Path Finder to nuke it.

Sometimes you just have to restart if it is owned by system.

I had an older copy of Palm Desktop - thing was a mess to get rid of even though never used or opened in 4 yrs.

Folders or packages (applications and even some data files like Quicken have or are packages) can have background apps or processes.

But, without knowing what it is, just "shooting in the dark." 😟

Jun 25, 2006 2:50 PM in response to Cosmo

Very likely that the restart did the trick.

If you have locked files in the trash, you can hold down the Option key while emptying the trash to delete the files and you won't get the message saying that the trash couldn't be emptied because some files are locked.

For your problem with files/folder in use, you can use the lsof command in Terminal to discover which process has the files/folder open. Just type 'lsof' and a space character in the Terminal window and then drag the offending file or folder onto the terminal window. When you press Return, you'll see a bunch of info such as the name and process ID of the process that has the file/folder open. You can then use the Terminal or Activity Monitor to kill that process and shouldn't have to restart.

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.

Deleting an "in use" folder

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