Link to home
Start Free TrialLog in
Avatar of iceb
icebFlag for Canada

asked on

cannot delete : it is being used by another person or program

Hi

i am running windows XP
i am trying to delete and move a couple of folders and files.
i get this error message.

Cannot delete [Folder Name]: it is being used by another person or program
close any programs that might be using the file and try again.

The point is no other program is using the files / folders. i have restarted the comp so many times , shutdoen the antivirus but nothing seems to be working. i need to free up hard disk space.

has nayone faced the same problems before ?

thanks.

iCe

Avatar of sramesh2k
sramesh2k
Flag of India image

iCe: Tried it in Safe Mode? And which folders you're trying to move (shell folders?)
are these just personal files and folders that you created? sometimes surprisingly something does have the file or folder locked open or sometimes permissions may be a factor... check out this link....

http://support.microsoft.com/default.aspx?scid=kb;en-us;320081
ASKER CERTIFIED SOLUTION
Avatar of PaulADavis
PaulADavis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dbacalja
dbacalja

You might want to take a look at the Process Explorer from Sysinternals:

http://www.sysinternals.com/ntw2k/freeware/procexp.shtml

It can show you which handles (file, reg. key, directory etc.) and DLLs are in use and who is using them. Use "Find Handle" to do a search on opened handles. Just enter the directory or file name that is locked in the search bar. You will get the list of the processes that are keeping the file or directory locked.
hi

right click the file you would like to remove then on the popup menu click on cut, now open the bin and paste in there, now empty the bin.

H
You might try removing it in safe mode.  Might also try opeing task manager and killing as many processes as you can, though the wrong one and you get the countdown to shutdown box.  Then kill explorer, then open cmd.exe from the task manager and try to delete it from the command line.  If that doesn't work, you can try deleting it from the recovery console.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you have access to another computer, you could pop the drive into the other computer and delete the files/folders using the other operating system,
That would work.
is it an extremly long name+path (->try to rename a subordinated folder to 1 character, try to delete the file, rename the folder to its previous name)
have you tried to delete the file in a Dos command-windwo ("Del" like comment from jvuz) ?
Avatar of iceb

ASKER

o my god !
soo many replies.

i'll have tuff time awarding points.
i m busy trying the solutions.

will get back soon.

thanks to everyone.

iCe

Avatar of iceb

ASKER

Thanks. PaulADavis
http://www.theeldergeek.com/delete_undeletable_file.htm
This solution worked.

cmd. did it.
!@#$%^&*()  -> state of my mind  -> whom to award points.

Similar solution by jvuz.
Similra solution by timothyfryer -> had tried in safe mode and also by killing the processes

barcelona_blom had a good suggestion too.
dbacalja sent a cool link.

Huseyin1 -> i had tried that but even cut did not work.
berni1234 -> even renaming was giving the same error.


Still thinking about awarding points.

iCe

when i used del command in cmd it deleted the file. now it is not even in the recycle bin.
where did it go ? i know permanently deleted but shudnt it have been in recycle bin.

iCe
lol.... i was surprised as well when i saw how many folks jumped on the question.... :-)

thanks iceb....

experts exchange is a really nice place to find the answers you need and learn new things.... love it ;-)

all the best to you ....
Avatar of iceb

ASKER

ok i feel guilty conscious.
please accept these points in the separate question i have created.
https://www.experts-exchange.com/questions/20974315/Points-for-dbacalja-PaulADavis-timothyfryer-jvuz-re-cannot-delete-it-is-being-used-by-another-person-or-program.html
[dbacalja] 100
[PaulADavis] 100
[timothyfryer] 50
[jvuz ] 100

sramesh2k -> had tried in safe mode. sorry . no points.
dbacalja -> 100 points -> for the excellent link
PaulADavis -> 100 points  -> cuz of the simple reason he answered first.
Huseyin1 -> i had tried that but even cut did not work.
timothyfryer -> 50 points -> same suggestion. but could have explained like jvuz. No offense meant.
jvuz -> 100 points -> for providing info at one place.
berni1234 -> your answer was a pointer to jvuz. no points. no offense meant.
barcelona_blom -> was a good suggestion. but not the primary solution. soory . no points.

This was by far the toughest time i had awarding points. it has taken me close to 30 minutes to be try to be fair to everyone.
(i hope :-))


iCe.
Thanx,
Jvuz.
I had the same problem and the cut and paste tip worked for me.
I had this same problem with a large video file that refused to delete on my XP Pro NTFS machine.
I cut and pasted the file to an empty partition and formatted the partition and it cleared it ok.

This was before I saw Huseyin1's comment above suggesting a cut and paste to the Recyvle Bin which of course. if that works would be much simpler.

brigodon
The “accepted solution” to this has worked perfectly for deleting the undeletable files, but there is one small problem with this “accepted answer”.  It is just a bandaid, and only fixes the problem when it arises.  What do I do to keep the problem from arising in the first place?  I am now to the point that I am getting these undeletable files almost every other day, in the My Documents folder.  I use the sysinternals process explorer to check out which process has the lock, and it is consistently explorer.exe.  Why would explorer.exe be keeping these locks in the first place?

I have service pack 2 for Windows XP Professional, and it seems to have gotten worse after I installed service pack 2.  I don’t remember ever having this problem when I had no service packs installed, but then again that could just be my imagination.
kennethburgener, you should open a seperate question....

this question 1.has been closed 2. is someone else's request for assistance.

check your permissions structure and/or perform a repair installation.
 
I am now unsubscribing from this question and will now longer receive notices.
Bet you would get a ton of responses if you opened a new question.