Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how do you delete files that say you can't delete them?

I'm trying to delete several files (one, an application; the other, an Excel file) but whenever I move them to the trash, I get an error message. The Application (Skype) error says I have to unlock the file, but after I unlock it (using File->Get Info) and I type in the administrator password, it gets me back to the beginning and I have to do the whole thing over and over again.

When I try to delete Excel file, i get a dialogue box that says "The operation can’t be completed because the item “NY alumni list.xls” is in use." But the file is only being used by me; even after I make a small change and resave it and then try to delete it, i get the same error message repeatedly.

i'm wondering if the files are corrupted or something and if so, how do I get rid of them?

Mac Book Pro, Mac OS X (10.5.1)

Posted on May 14, 2012 9:01 AM

Reply
30 replies

May 14, 2012 11:08 AM in response to Zyriab

when i move it to the Desktop, it creates an alias, which I can of course delete. But the original file remains in the Applications folder and still cannot be deleted.


I forgot to mention earlier that if I double-click on the Skype file, I get another error message that says the file "may be damaged or incomplete."


still doesn't make any sense why I can't delete/trash it...

May 14, 2012 11:28 AM in response to muncle

Open Terminal. Type


cd /Applications


to open the Applications directory. Type


ls


to list the contents of the Applications directory. Identify the file you want to remove and type


rm -i filename


Obviously replace 'filename' in the command above with the actual name of the file which will probably be something like Skype.app. Remember commands are case sensitive. If the filename has spaces in it precede the space with the backslash character '\'.

May 14, 2012 11:42 AM in response to muncle

Of course it is, oops my bad!


Type


cd Skype.app


to enter the directory, and


ls


to see the contents. If the contents are 'Contents', then


cd Contents


to enter that directory.


Type


rm -i filename


for each file in the directory. If one is a directory then use 'cd' to enter it and 'ls' to view the contents of it, as above. Repeat as necessary.


When a directory is empty type


cd ..


to exit it and go down a level to the enclosing directory. Type


rmdir directoryname


to remove a directory. Remember you can only remove empty directories this way, you cannot remove a directory that still has files or subdirectories in it using this method.

Oct 21, 2012 9:41 PM in response to Zyriab

hi, Ive been having similar problems ( I have a Mac Air btw ) . Tried unlocking the icon, but it just locks again. I dont understand why, I have the permission to read and write , but unable to alter it even if I wanted to know. Im really confused. Anyway the problem arised when I tried to upgrade, it would install and then reach as far as telling me to relaunch and then say, "Skype was unable to install the update because the old application can’t be overwritten." And when I try to delete it, it says "The item “Applications” can’t be moved to the Trash because it can’t be deleted." . And then I saw your response to someone with a similar problem and it didnt work. Do you think you have another solution for me?? 😟

Oct 21, 2012 9:47 PM in response to KimberlyDopson

"Applications", the folder, can't be moved to the Trash. The Skype application should be able to be moved to the Trash (if you're trying to install a newer version of Skype, it should just overwrite the file or ask you if you want to replace the app).


Not sure what's going on - are there other files that you're not able to trash?


Clinton

Oct 21, 2012 9:58 PM in response to muncle

Grab a copy of CCleaner from the App Store or from this link: Download CCleaner from Piriform


Open the Application then click on 'Tools' on the left side.


Under 'Uninstall', find Skype then click 'Uninstall'.


Don't know if it will work, but it's worth a shot. If it still doesn't install, reboot into Safe Boot and see if you can delete it from there. Here's how to safe boot: http://support.apple.com/kb/HT1455

how do you delete files that say you can't delete them?

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