FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Delete An "undeletable" File





Meit
Wink
source: http://tips4u.sosblog.com/TNC-b1/Delete-An-undeletable-File-b1-p17.htm wrote:
Delete An "undeletable" File

Open a Command Prompt window and leave it open.
Close all open programs.
Click Start, Run and enter TASKMGR.EXE
Go to the Processes tab and End Process on Explorer.exe.
Leave Task Manager open.
Go back to the Command Prompt window and change to the directory the AVI (or other undeletable file) is located in.
At the command prompt type DEL <filename> where <filename> is the file you wish to delete.
Go back to Task Manager, click File, New Task and enter EXPLORER.EXE to restart the GUI shell.
Close Task Manager.


Or you can try this

Open Notepad.exe

Click File>Save As..>

locate the folder where ur undeletable file is

Choose 'All files' from the file type box

click once on the file u wanna delete so its name appears in the 'filename' box

put a " at the start and end of the filename
(the filename should have the extension of the undeletable file so it will overwrite it)

click save,

It should ask u to overwrite the existing file, choose yes and u can delete it as normal


Here's a manual way of doing it. I'll take this off once you put into your first post zain.

1. Start
2. Run
3. Type: command
4. To move into a directory type: cd c:\*** (The stars stand for your folder)
5. If you cannot access the folder because it has spaces for example Program Files or Kazaa Lite folder you have to do the following. instead of typing in the full folder name only take the first 6 letters then put a ~ and then 1 without spaces. Example: cd c:\progra~1\kazaal~1
6. Once your in the folder the non-deletable file it in type in dir - a list will come up with everything inside.
7. Now to delete the file type in del ***.bmp, txt, jpg, avi, etc... And if the file name has spaces you would use the special 1st 6 letters followed by a ~ and a 1 rule. Example: if your file name was bad file.bmp you would type once in the specific folder thorugh command, del badfil~1.bmp and your file should be gone. Make sure to type in the correct extension.
^-^


If you're copying ANYTHING from other place other than writing it yourself, use quote tags, like so:
Code:
[quote="source: *source address goes here*"]*copied information goes here*[/quote]
iman
You can also use unlocker, which can find the locking handles for a certain file.
It's more accessible (it's in the right-click context menu) and you can see the processes that use it.
This is applicable even for drives.
So in case you're being bugged by your flash drive not being released, you can also use it.
Helios
Hell yes, Unlocker is a much much easier method than what OP's posted (and I'm not so sure that what he'd posted will always work).
Here's a link for you: http://www.filehippo.com/download_unlocker/


What I also found out is that sir OP likes copy pasting stuff from other sites and not using quote-tags thus unjustly gaining points and breaking the rules. Dude, at least edit it next time or something, don't make it so obvious Laughing
iman
By the way, however, recently I'm having some problems with Unlocker. It seems that it can't find every kind of locking handle out there, but I'm not really sure. So I'm just saying it's not that perfect yet.
anakin_skyrunner
I have used unlocker with Vista, but since it doesn't work with 7 I switched to LockHunter, which is even better in my opinion Smile http://lockhunter.com/
weableandbob
Unlocker's always been faithful to me =)
[FuN]goku
Yeah unlocker all the way. It's yet to fail me.
Agent ME
When is a file undeletable? Like a file that's open by some program, a system file, or is there some other way a file would be undeletable?
hunnyhiteshseth
If a file isundeletable, it is most probable that some other process had it opened and consequently, have a lock on it. In case of a lock before deleting a file, it is important to first remove the lock and then delete the file. Consequently, you would need a speacialist program like Unlocker to delete the file. So, infact tricks suggested by Meit shouldn't work anyway because it doen't remove lock anywhere.
ProfessorY91
This is why I love Unix. You people and your undeletable files. Bwahaha ... sudo for the win.
metalfreek
Here is what I do. Run live ubuntu from CD and delete whatever I want. I will try unlocker. Looks like lot of guys have a good experience with it.
hunnyhiteshseth
metalfreek wrote:
Here is what I do. Run live ubuntu from CD and delete whatever I want. I will try unlocker. Looks like lot of guys have a good experience with it.


If i had the patience to reboot my PC, I would have setup a batch file to run before windows to delete the file instead of using ubuntu!
metalfreek
hunnyhiteshseth wrote:
metalfreek wrote:
Here is what I do. Run live ubuntu from CD and delete whatever I want. I will try unlocker. Looks like lot of guys have a good experience with it.


If i had the patience to reboot my PC, I would have setup a batch file to run before windows to delete the file instead of using ubuntu!


Great way of deleting theese files. But my knowledge on code is close to zero.
jdelfire
unlocker is one of the most effective file deleter... very easy to use... perfect for noobies...
but when all else fail i go for a more hard core apps like avenger and icesword
milleja46
Agent ME wrote:
When is a file undeletable? Like a file that's open by some program, a system file, or is there some other way a file would be undeletable?


It's also undeletable when it's a virus file. Look up recycler.exe and you will find what i mean.
Helios
ProfessorY91 wrote:
This is why I love Unix. You people and your undeletable files. Bwahaha ... sudo for the win.


Hah! Totally agree Laughing
With a push of a button everything is deletable and any process can be killed Twisted Evil
Same goes for viruses which travel on disk on keys (somebody mentioned Recycler)... I don't bother installing an antivirus on it, just log into my linux, delete the virus files, and boot into windows if needed.
Fire Boar
*nods* Agreed, anti-virus software is overrated.
misterXY
ProfessorY91 wrote:
This is why I love Unix. You people and your undeletable files. Bwahaha ... sudo for the win.

Sudo
Sudo -k Microsoft
milleja46
I seriously need to figure out how to use linux on this comp, i would like to test out what your saying....
carlosantos
Reboots are usually required to unlock some files...especially context menu handlers...try rebooting and deleting them (they may automatically get deleted during the reboot process).

Failing that, download and install Unlocker:
www.filesUnlocker.com
weableandbob
Unlocker, plus it helps with a few other things as well.
gphoenix
i use Dr.delete Very Happy

it works like a charm to me.. but the new version is buggy and needs a major update!
alanlarky
All Problems have ONE solution and that is:

www.longPathTool.com


Path too long.

Error cannot delete file: cannot read from source file or disk

Cannot delete file: Access is denied

There has been a sharing violation.

Cannot delete file or folder The file name you specified
is not valid or too long. Specify a different file name.

The source or destination file may be in use.

The file is in use by another program or user.

Error Deleting File or Folder

Make sure the disk is not full or write-protected and that the file is not currently in use.

Path too deep.
derekKinny
www.tooLongPath.com saved me lot of time for solving this problem
tamilparks
Agent ME wrote:
When is a file undeletable? Like a file that's open by some program, a system file, or is there some other way a file would be undeletable?


yes its like this only..
Flakky
This only works if explorer.exe refuses to close a file. If another application blocks a file this is useless.
I recommend simply closing the application which you have used to open this file or simply use unlocker (as a last resort of course).
ericwall
i usually use the fileassassin that comes with malwarebytes
naweed
I use unlocker which an easy to use software. But be careful when deleting files which might cause your pc not to function properly
filarono
I use Unlocker too. It unblocks everything that prevents your file or folder from being deleted. A very good piece of software.
Abhishukla
who will go through this all long process? simply user can use Unlocker, to delete a file.
there is no mean to do all this.
mugundhan
Meit wrote:
Wink
source: http://tips4u.sosblog.com/TNC-b1/Delete-An-undeletable-File-b1-p17.htm wrote:
Delete An "undeletable" File

Open a Command Prompt window and leave it open.
Close all open programs.
Click Start, Run and enter TASKMGR.EXE
Go to the Processes tab and End Process on Explorer.exe.
Leave Task Manager open.
Go back to the Command Prompt window and change to the directory the AVI (or other undeletable file) is located in.
At the command prompt type DEL <filename> where <filename> is the file you wish to delete.
Go back to Task Manager, click File, New Task and enter EXPLORER.EXE to restart the GUI shell.
Close Task Manager.


Or you can try this

Open Notepad.exe

Click File>Save As..>

locate the folder where ur undeletable file is

Choose 'All files' from the file type box

click once on the file u wanna delete so its name appears in the 'filename' box

put a " at the start and end of the filename
(the filename should have the extension of the undeletable file so it will overwrite it)

click save,

It should ask u to overwrite the existing file, choose yes and u can delete it as normal


Here's a manual way of doing it. I'll take this off once you put into your first post zain.

1. Start
2. Run
3. Type: command
4. To move into a directory type: cd c:\*** (The stars stand for your folder)
5. If you cannot access the folder because it has spaces for example Program Files or Kazaa Lite folder you have to do the following. instead of typing in the full folder name only take the first 6 letters then put a ~ and then 1 without spaces. Example: cd c:\progra~1\kazaal~1
6. Once your in the folder the non-deletable file it in type in dir - a list will come up with everything inside.
7. Now to delete the file type in del ***.bmp, txt, jpg, avi, etc... And if the file name has spaces you would use the special 1st 6 letters followed by a ~ and a 1 rule. Example: if your file name was bad file.bmp you would type once in the specific folder thorugh command, del badfil~1.bmp and your file should be gone. Make sure to type in the correct extension.
^-^


If you're copying ANYTHING from other place other than writing it yourself, use quote tags, like so:
Code:
[quote="source: *source address goes here*"]*copied information goes here*[/quote]

use unlock software to unlock the files so that we can delete easly or use take ownership softweare
portoskt
try to delete it in safe mode
Aredon
If the file is locked because it's owned by another user -> change the permissions in properties. (or add user "EVERYONE")
If the file is locked because it's opened by a process:
a.) Kill the process, delete the file.
b.) boot in safe mode, delete the file.
c.) boot with ubcd or another livecd, delete the file.

hard stuff.
socials
Use unclocker. Is the best tool for deleting such files that don't want to be deleted.
alli2000
just use command promt
Amann
Meit wrote:
Wink
source: http://tips4u.sosblog.com/TNC-b1/Delete-An-undeletable-File-b1-p17.htm wrote:
Delete An "undeletable" File

Open a Command Prompt window and leave it open.
Close all open programs.
Click Start, Run and enter TASKMGR.EXE
Go to the Processes tab and End Process on Explorer.exe.
Leave Task Manager open.
Go back to the Command Prompt window and change to the directory the AVI (or other undeletable file) is located in.
At the command prompt type DEL <filename> where <filename> is the file you wish to delete.
Go back to Task Manager, click File, New Task and enter EXPLORER.EXE to restart the GUI shell.
Close Task Manager.


Or you can try this

Open Notepad.exe

Click File>Save As..>

locate the folder where ur undeletable file is

Choose 'All files' from the file type box

click once on the file u wanna delete so its name appears in the 'filename' box

put a " at the start and end of the filename
(the filename should have the extension of the undeletable file so it will overwrite it)

click save,

It should ask u to overwrite the existing file, choose yes and u can delete it as normal


Here's a manual way of doing it. I'll take this off once you put into your first post zain.

1. Start
2. Run
3. Type: command
4. To move into a directory type: cd c:\*** (The stars stand for your folder)
5. If you cannot access the folder because it has spaces for example Program Files or Kazaa Lite folder you have to do the following. instead of typing in the full folder name only take the first 6 letters then put a ~ and then 1 without spaces. Example: cd c:\progra~1\kazaal~1
6. Once your in the folder the non-deletable file it in type in dir - a list will come up with everything inside.
7. Now to delete the file type in del ***.bmp, txt, jpg, avi, etc... And if the file name has spaces you would use the special 1st 6 letters followed by a ~ and a 1 rule. Example: if your file name was bad file.bmp you would type once in the specific folder thorugh command, del badfil~1.bmp and your file should be gone. Make sure to type in the correct extension.
^-^


If you're copying ANYTHING from other place other than writing it yourself, use quote tags, like so:
Code:
[quote="source: *source address goes here*"]*copied information goes here*[/quote]


unlocker is the best or else you if you are using Bitdefender total security then you can use the inbuilt feature of Bitdefender it works good.... try it...
sanalskumar
alli2000 wrote:
just use command promt

How does it help? It is just like deleting from GUI.

If i encounter files which i can not delete, i'll just reboot my machine and delete it. Once i had a virus issue, because of which, i was not able to delete a file. I did a little bit of googling. and found KillBox. It was helpful to me. Its quite simple to use.
Fire Boar
sanalskumar wrote:
alli2000 wrote:
just use command promt

How does it help? It is just like deleting from GUI.

If i encounter files which i can not delete, i'll just reboot my machine and delete it. Once i had a virus issue, because of which, i was not able to delete a file. I did a little bit of googling. and found KillBox. It was helpful to me. Its quite simple to use.


It can help because Windows likes to make sure that you can't get rid of or change anything that's absolutely essential to the running of the system, so it provides a number of special attributes that may be set on files. Unfortunately, other programs will sometimes use these attributes too, resulting in a file which can't be removed via the GUI. The command prompt does have commands for removing the attributes though... commands which the GUI does not have. The programs people have recommended are simply GUI programs which have functionality that already exists in the command line.
sanalskumar
Quote:
The command prompt does have commands for removing the attributes though... commands which the GUI does not have. The programs people have recommended are simply GUI programs which have functionality that already exists in the command line.


Yeah, i missed your point. We can reset the file attributes. But, what if you can not delete a file because it is already running? I think you will have to use some third party (or microsoft's own) programs to kill it and delete it. [/quote]
Fire Boar
sanalskumar wrote:
Quote:
The command prompt does have commands for removing the attributes though... commands which the GUI does not have. The programs people have recommended are simply GUI programs which have functionality that already exists in the command line.


Yeah, i missed your point. We can reset the file attributes. But, what if you can not delete a file because it is already running? I think you will have to use some third party (or microsoft's own) programs to kill it and delete it.


In that case, you can find and kill the process that's using the file. Failing that, you can try deleting it in safe mode. If even that doesn't work, you can load an external bootable operating system and delete it from that - this last method will always work.
sanalskumar
Fire Boar wrote:
sanalskumar wrote:
Quote:
The command prompt does have commands for removing the attributes though... commands which the GUI does not have. The programs people have recommended are simply GUI programs which have functionality that already exists in the command line.


Yeah, i missed your point. We can reset the file attributes. But, what if you can not delete a file because it is already running? I think you will have to use some third party (or microsoft's own) programs to kill it and delete it.


In that case, you can find and kill the process that's using the file. Failing that, you can try deleting it in safe mode. If even that doesn't work, you can load an external bootable operating system and delete it from that - this last method will always work.


How will you find out which process is using your file? Does windows by itself gives an option to you to find out? I don't think so. And to me, its easier to run a portable application rather than going through the hustles of booting with a different Operating System ( Are you not using a different tool then?).
flamepjlh
Meit wrote:
Wink
source: http://tips4u.sosblog.com/TNC-b1/Delete-An-undeletable-File-b1-p17.htm wrote:
Delete An "undeletable" File

Open a Command Prompt window and leave it open.
Close all open programs.
Click Start, Run and enter TASKMGR.EXE
Go to the Processes tab and End Process on Explorer.exe.
Leave Task Manager open.
Go back to the Command Prompt window and change to the directory the AVI (or other undeletable file) is located in.
At the command prompt type DEL <filename> where <filename> is the file you wish to delete.
Go back to Task Manager, click File, New Task and enter EXPLORER.EXE to restart the GUI shell.
Close Task Manager.


Or you can try this

Open Notepad.exe

Click File>Save As..>

locate the folder where ur undeletable file is

Choose 'All files' from the file type box

click once on the file u wanna delete so its name appears in the 'filename' box

put a " at the start and end of the filename
(the filename should have the extension of the undeletable file so it will overwrite it)

click save,

It should ask u to overwrite the existing file, choose yes and u can delete it as normal


Here's a manual way of doing it. I'll take this off once you put into your first post zain.

1. Start
2. Run
3. Type: command
4. To move into a directory type: cd c:\*** (The stars stand for your folder)
5. If you cannot access the folder because it has spaces for example Program Files or Kazaa Lite folder you have to do the following. instead of typing in the full folder name only take the first 6 letters then put a ~ and then 1 without spaces. Example: cd c:\progra~1\kazaal~1
6. Once your in the folder the non-deletable file it in type in dir - a list will come up with everything inside.
7. Now to delete the file type in del ***.bmp, txt, jpg, avi, etc... And if the file name has spaces you would use the special 1st 6 letters followed by a ~ and a 1 rule. Example: if your file name was bad file.bmp you would type once in the specific folder thorugh command, del badfil~1.bmp and your file should be gone. Make sure to type in the correct extension.
^-^


If you're copying ANYTHING from other place other than writing it yourself, use quote tags, like so:
Code:
[quote="source: *source address goes here*"]*copied information goes here*[/quote]



                                                   
Just use unlocker for this.                                      
                                                   
Very Happy
markofVis
This problem is no longer a considered because it has been solved.There is away to fix this problem and the name of that software is Long Path Tool.I highly recommend it to you since I have already used it.
garrydam
Try and download " Long Path Tool " is also useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source or destination file may be in use and many other file managing errors.
loveandormoney
Another way
do delete
bad files in win/dos:

Use Live CD Linux and then You can delete them.
Da Rossa
I was about to say the same thing. Files get locked because the OS is using them at a given point. Or they're locked by design. So you need to sweep them when they're not in use. How to do this? Use a secondary operating system, preferably a DVD/CD/USB live linux distribution. Gone!
Shashi_kant_Gupta
Try "Long Path Tool is also useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source or destination file may be in use and many other file managing errors.

[/b]
Related topics
Linux or Windows on your computer?!
Windows Tips&tricks!
Can't delete module folder from postnuke?
A "small" list of free apps
Computer Virus Types
Can't Delete Folders
core.18081 file
cant delete files
Window Xp-Deleting child file makes parent folder lock-up
What files are safe to delete in File Manager?
Who Deleted the file
File renaming software
Problems with File Ownership
How to completely delete a file?
Reply to topic    Frihost Forum Index -> Computers -> Operating Systems

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.