Cannot Delete Item "Could Not Find This Item" issue

25

6

A friend sent a long a file (a .rar) he wanted me to check out for him before he installed it.

I downloaded it and unrared it with no problems, but it was full of .exe's instead of the intended contents (fonts) so I advised him to delete it immediately and not use.

I then proceeded to do the same, but the folder simply will not delete. Oddly the files went fine, and I never ran anything, but this is what I'm seeing:

Could not find this item

This is no longer located in C:\Users\This_User\Desktop. verify the item's
location and try again.

I've tried the following things with no help:

  • Using "Unlocker" to Unlock and delete
  • Using move on reboot and rebooting
  • Using PendMoves (from sysinternals) and rebooting Elevating a cmd line, doing a dir /x to get the short name of the folder, and then del 'shortna~1'
  • Moving the folder to a new folder and then trying to delete the parent folder

I'm on Windows 7 RTM, very fresh install. Any thoughts?

Update: Just to confirm, I've run Hijack this and half a dozen other malware detectors, and everything came back clean (no extra processes, no other obvious badness). Rebooting in safe mode didn't help either.

aronchick

Posted 2009-08-24T17:30:13.700

Reputation: 916

I had this exact problem (once in my life). I had to reboot in my linux and delete it from there. No matter what I did from Windows 10 it didn't worked. From Linux I could do a normal delete. – Heroselohim – 2016-02-14T00:58:36.513

This was the folder name: "the 100 subtitles" (located on desktop) and was already empty. When looking into the security tab about the folder It was not accesible. Hope this info helps. – Heroselohim – 2016-02-14T01:05:49.593

4Some part of the NTFS filesystem is damaged. I've had this issue. Never was able to fix it without a reformat. – Fake Name – 2010-06-30T05:39:26.203

I did everything on this site and more for hours and nothing worked. Finally Unlocker 1.9.2 after trying to find a lock and not finding one on my files offered to delete them and it succeeded. To future users, it's worth trying. Even if it didn't work for the OP. https://unlocker.en.softonic.com/

– user5389726598465 – 2017-09-27T03:07:42.410

if you have this issue, try Cale's suggestion - worked for me.

– Mark Heath – 2011-05-31T19:27:11.283

The problem here is that del doesn't work for folders. Correct syntax would be rd shortna~1 /s to remove the folder/subfolders/contents. – EKW – 2012-03-19T18:27:59.990

Answers

23

I know you said that you tried deleting the shortname of the file and it didn't work for you, but it does work for some forms of this problem. It worked for me. So for the sake of completeness I am mentioning it here.

Step by step:

  1. press windows key + r
  2. type cmd.exe, press enter
  3. cd \to\the\folder\containing\the\problem\file
  4. dir /x
  5. Note the short filename of the problem file. It will look for example like BLAH~1.
  6. del BLAH~1

dangph

Posted 2009-08-24T17:30:13.700

Reputation: 3 478

This did not work for me since I am using Windows 10, which does not save short filenames by default. – Jesse Webb – 2017-12-21T19:21:14.503

12

Try the DelinvFile tool. It worked for me perfectly when NOTHING worked before.

BR, galmeida

galmeida

Posted 2009-08-24T17:30:13.700

Reputation: 121

also worked after nothing else did. thanks a lot! – Boris Brdarić – 2014-09-01T16:36:23.570

This is also worked for me when nothing else did – adampski – 2015-12-16T08:25:56.730

DelinvFile is working perfectly. Tested it with Windows 10 – Hartmut P. – 2016-01-06T01:49:42.043

this worked for me – Pup – 2011-04-01T18:23:13.197

Works great, shame it's not freeware - but anyway 3 actions are more than enough for me) – zbstof – 2012-03-30T22:18:18.070

7

Boot into a Linux live CD environment and delete it with NTFS-3G?

user10547

Posted 2009-08-24T17:30:13.700

Reputation: 1 089

5

Ah ha!!! I did it!!! This was so annoying but after several hours... it dawned on me. Basically, you make a folder with the same name as the missing folder, then you drag the folder into the folder with the missing folder. Windows did not ask me to combine the folders, but after that, Windows knows where the folder is and you can delete it. I didn't try to copy and pasted I'm guessing that would work too.

Cale

Posted 2009-08-24T17:30:13.700

Reputation: 51

Saved my day! Thanks! – Aldridge1991 – 2019-07-12T06:39:34.227

This solution works on Windows 7. Please post if it works on previous versions. – Cale – 2011-03-28T05:44:34.960

Genius! this works! I had the same problem after extracting a zip file (from Program Files\Visual Studio) into my user\downloads folder. It resulted in a weird folder containing files I couldn't access or delete. I followed this advice, Win 7 asked me to merge which I said yes to, and then it let me delete the folder with no fuss. – Mark Heath – 2011-05-31T19:25:25.633

didn't work for me - I then somehow had 2 identically named folders in alongside eachother! – Shevek – 2012-01-28T10:49:57.097

3

This worked for me :

1. press windows key + r
2. type cmd.exe, press enter
3. rd /s "\\?\D:\bad\folder\path "

Notice the space at the end of "\\?\D:\bad\folder\path "

kevin

Posted 2009-08-24T17:30:13.700

Reputation: 1 654

This works for files that have bad characters in their name or are too long. I had files created by a linux server that windows was unable to delete by name. And in Powershell: Remove-Item -Recurse -Force "\\?\E:\Folder\Path\" with no space. – user19702 – 2020-02-19T19:45:15.147

2

Isn't there a special character in the name of the directory? Like an "empty" character that looks like a space but is not a space?

Have you tried a "Check Disk", as the directory entry for that directory or its parent might be corrupted?

Snark

Posted 2009-08-24T17:30:13.700

Reputation: 30 147

I have the same problem. In my case it is a space character that follows the folder name. – MSX – 2014-11-12T17:22:25.937

no special characters. check disk reports nothing. – aronchick – 2009-09-21T03:37:18.597

1

This is a problem with the desktop not being able to auto refresh. Like others have said, try pressing F5 to refresh because the file may already be deleted. Here's a thread on the same problem: http://social.answers.microsoft.com/Forums/en-US/w7desktop/thread/249f4794-13c8-4fc5-939c-b3d1fe6433fb The problem usually has to do with some program like WinRAR that copies files onto the desktop instead of Windows Exlporer.

user29110

Posted 2009-08-24T17:30:13.700

Reputation: 11

Sorry, restarted, refreshed, etc many many times. No go. – aronchick – 2010-03-05T07:24:55.660

1

Are you sure the folder is actually empty? There could be a file marked Hidden and Read-Only, or System in there. Windows could be blocking you from deleting because of the Hidden+RO or System file.

Haven't got a Windows 7 machine handy here, but in Vista you'd make sure that you can see all the files by opening Explorer, clicking "Organize", selecting "Folder and Search Options", then clicking the "View" tab. If you scroll down that screen you would see a "Hidden files and folders" option, make sure they're shown, then scroll down a little more to where it says "Hide protected operating system files" and make sure that isn't selected.

Now have a look at the folder and see if there's anything more in it.

Alternatively open a command window in the folder and type attrib see if any files show up (probably with SH or HR flags set on them).

GAThrawn

Posted 2009-08-24T17:30:13.700

Reputation: 4 176

Nope, nothing there. – aronchick – 2009-10-22T18:00:52.320

0

Try hitting F5 after you delete. It may be that it actually has been deleted but the view hasn't automatically refreshed. I had the same problem. Also newly created folders or renamed files wouldn't show up without refreshing. Unselecting the two navigation pane checkboxes under the general tab in folder options seem to fix it.

John

Posted 2009-08-24T17:30:13.700

Reputation:

1Nope, not a refresh issue... – aronchick – 2010-03-05T07:25:51.183

0

Could it be that the full path of this directory is too long (>255 characters)? If so, try renaming the directory to something shorter and then deleting it.

Alex

Posted 2009-08-24T17:30:13.700

Reputation: 1 848

Nope, renamed it to something short, still no go. – aronchick – 2010-03-05T07:25:33.960

0

I had a similar issue, attempting to remove files I had copied across a networked bridge from an installed virtual machine. It seemed nothing I did would remove these: I tried the "Take Ownership Registry Hack", and the even more powerful "AccessGain MiniFilter Driver" (http://www.hobeanu.com/blog/) Which in Windows 7 64-bit requires quite a concerted effort (http://msdn.microsoft.com/en-us/library/aa906338.aspx). Inside the Windows 7 64-bit GUI, it seemed nothing would remove these files - I was stymied across every approach.

Finally, I reached into my quiver for an old trusted friend.

The Command Prompt

I was still booted in the "disabled driver signature enforcement session," that I mentioned above. The "AccessGain MiniFilter Driver" (http://www.hobeanu.com/blog/accessgain-tool/) was installed and was giving me a superuser 'God-like' control over anything on my drive. At this point:

  1. I fired up an "Administrative Rights enabled Command Prompt," (http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-windows-vista/)
  2. Navigated to my Desktop. I used the command: "cd c:\Users\superuser\Desktop"
  3. (Note: Change the term "superuser" to your account name.)
  4. Looked to see if the files were present. I used the command "dir backup"
  5. (Note: All my files had the word "backup" in them. If different for you, replace term)
  6. Then I simply deleted the files. I used the delete command: "del backup"

When all else fails, pull up your sleeves and get your hands dirty with the trusted old command prompt... Hope this helps some of you. I was pulling my hair out on this one, and when I resolved it, thought it might be worth sharing.

Cheers!

user31732

Posted 2009-08-24T17:30:13.700

Reputation:

This is interesting, but it's not a command prompt issue. I should have tried to boot into disable drive signature enforcement session. – aronchick – 2010-03-21T21:50:30.697

0

Before you do anything else, run some anti-virus and malware tools to make sure your machine is not infected with anything. You did open an unknown or possible untrusted rar.

Clean up infected computer from viruses

https://superuser.com/questions/20895/best-adware-removing-software-thats-free

Troggy

Posted 2009-08-24T17:30:13.700

Reputation: 10 191

Will do.... but can [mal|ad]ware spread just by extracting an archive? Not by running anything, just extracting? – aronchick – 2009-08-24T17:47:37.313

1Was it a self-extracting rar? If so, those could potentialy be dangerous. – Troggy – 2009-08-24T17:49:21.727

Nope, just used "ExtractNow" to expand it, and that was it. No joy on the anti-malware tool... nothing found, and it's still undeletable. – aronchick – 2009-08-24T17:58:02.287

What happened when a current virus scanner looked at the files in that rar? – Troggy – 2009-08-24T18:08:05.057

Unfortunately, deleted the archive when it was clear it was filled with badness. – aronchick – 2009-08-24T18:10:47.050

0

Safe Mode is also something to try. That or if it's already too late, see if you can identify the process name, and use Hijack This to get rid of it.

Sakamoto Kazuma

Posted 2009-08-24T17:30:13.700

Reputation: 833

it doesn't appear to be a process of any kind. and nothing is coming up on malware. – aronchick – 2009-08-24T19:01:24.683

Safe mode didn't help - Hijack this didn't report anything. – aronchick – 2009-08-26T20:21:14.150

0

I was having the same problem. using delinv i was able to delete the folder(s)

Asghar

Posted 2009-08-24T17:30:13.700

Reputation: 158

0

This problem (folders in Windows 7 containing executable files being inaccessible) is not a permission issue, nor an open-handle issue. It happens when the Application Experience service is disabled. Set the service to manual to resolve it:

Run dialog (or command prompt):

  > sc config AeLookupSvc start= demand

Synetech

Posted 2009-08-24T17:30:13.700

Reputation: 63 242

0

I'm not sure if Windows 7 has Command Prompt. But you can delete it from Command Prompt. Go to the said directory and then use the command del against the file name.

  1. Go to Command Prompt "Windows + R"
  2. cd C:\Users\This_User\Desktop
  3. del "filename.abc"

This should work.

Nikhil Kabadi

Posted 2009-08-24T17:30:13.700

Reputation:

It's not a file, it's a directory - and as mentioned command line doesn't help. – aronchick – 2009-09-21T03:41:07.543