How To Delete An Undeletable File

Delete An "Undeletable" File: How To

I had a file with a "File Name Anomaly" [for lack of a better word] that I just could not delete no matter what I tried. So I posted a question on my own page at Questions and Answers Forum and at

Between the two I finally got rid of that pesky file that was stopping my from
Removing Users And All Registry Profile Leftovers

I'm running Windows XP Pro SP1 on NTFS.
In trying to remove a profile, there is 1 file that I believe windows does not recognize....... Therefore I cannot delete it.
It appears in blue lettering and does not respond to any mouse or key action. I has an Attribute of a.
If I try to delete Bud from C:\Documents and Settings\Bud\ I will get the message

I asked this question

How Do I Get Rid Of This

C:\Documents and Settings\Bud\Local Settings\Temp\History\Temporary Internet Files\Content.IE5\2DB13N4D\TP10000000000000008.0203.04._ZAHi,7,2,15,108,verdenab,8,204,102,0_ZAMoney%20makes%20%20%20%20ScrappleFace%20%20%20%20%20more%20funny.,7,14,50,108,times,11,0,0,0_[1].jpg

Step 2 then is "Removing Users And All Registry Profile Leftovers".

This Key S-1-5-21-73586283-1957994488-682003330-1003 at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-73586283-1957994488-682003330-1003

Shows [ProfileImagePath] value is [%SystemDrive%\Documents and Settings\Bud]
The [ and ] brackets are not there. That's just for me to show you what I'm trying to clean up. Plus be sure I removing all remnents of the old profile C:\Documents and Settings\Bud

Answer 1. HOW TO: Take Ownership of a File or Folder in Windows XP

HOW TO: Take Ownership of Files
After that right click it and click on it>properties>Advanced and uncheck Encrypt check box, after that you will be able to delete this file !!!

I never did see a "Encrypt Check Box"

Also to Completely Delete a User from the system, you can downlaod and use the following utility:
User Profile Deletion Utility (Delprof.exe)

If you want to delete a user folder and its contents from C:\Documents and Settings then boot into safemode and Login as Administartor, and after that take the ownership of the user folder and then delete it if you are sure that you don't need it.

Note This taking ownership of the File and Folder Is a MUST inside a Profile

Thank you Patricia :-)

That didn't work It remove all but that darn file and the folder [though empty].

Now Here Comes A Real Neat Trick I Knew Nothing About

From XP's
1. Start
2. Run
3. CMD <enter>

Run a CHKDSK /F /R


I did this,

The type of the file system is NTFS.
Cannot lock current drive.

Chkdsk cannot run because the volume is in use by another
process. Would you like to schedule this volume to be
checked the next time the system restarts? (Y/N)

Said yes and rebooted. System did it's thing then back to windows, system will still not get rid of that file.

Now Here Comes Another Real Neat Trick I Knew Nothing About

From one of Experts-Exchange Tech's

Delete an "undeletable" file

1. Close all open programs.

2. Open a command prompt.

3. Right-click the taskbar, and select Task Manager.

4. On the Processes tab, select Explorer.exe, and click the End Process button.

5. Minimize Task Manager, but don't close it.

6. At the command prompt, use the Delete command to remove the file, and close the command prompt.

7. In Task Manager, go to File | New Task (Run).

8. In the Create New Task dialog box, enter Explorer.exe, and click OK.

9. Close Task Manager.

A cool trick but it didn't work

So a Comment from gemarti.

Try the following suggestion I above

Deleting Folders Using Short File Names

From XP's
1. Start
2. Run
3. CMD <enter>
4.CD To The Top Of The Problem Folder.
5. Use: DIR /X /A to see the SHORT FILE NAMES of the files and directories there.

If you are going to use DEL You need to put "QUOTES" around complete path and filename if the path or filename contains spaces.

DEL "C:\Documents and Settings\Bud\Local Settings\Temp\History\Temporary Internet Files\Content.IE5\2DB13N4D\TP10000000000000008.0203.04._ZAHi,7,2,15,108,verdenab,8,204,102,0_ZAMoney%20makes%20%20%20%20ScrappleFace%20%20%20%20%20more%20funny.,7,14,50,108,times,11,0,0,0_[1].jpg"

Success finally came when I started at C:\>


DIR /X /A to Documents and Settings = DOCUME~1
DIR /X /A to Bud
DIR /X /A to Local Settings = LOCALS~1
DIR /X /A to Temp
DIR /X /A to Temporary Internet Files = TEMPOR~1
DIR /X /A to Content.IE5 = Content.IE5
DIR /X /A to 2DB13N4D = 2DB13N4D
DIR /X /A to TP10000000000000008.0203.04._ZAHi,7,2,15,108,verdenab,8,204,102,0_ZAMoney%20makes%20%20%20%20ScrappleFace%20%20%20%20%20more%20funny.,7,14,50,108,times,11,0,0,0_[1].jpg = TP1000~1.jpg

I finally saw TP1000~1.jpg

DEL TP1000~1.jpg

It gone :-) :-)
Oh! Happy Me.

Method Two

Delete Undeletable Files And Folders In XP

1. Sometimes "in use" is reported because a .dll is in some way tied up. Often, a reboot followed by an immediate attempt to delete the file works just fine.

2. Boot into 'safe' mode.

Here are some specific articles on the subject
Back To The Top

Bud's CDs FREE MP3s     Alphabetical Index Of Everything In This Site