Can't Delete A File - It Says it's "no longer located there&#34


Recommended Posts

I've had this issue as well. It sounds like a bug which MS refuses to fix. My only solution is to save everything that you want saved and format the partition in question.

I've had similiar problems with W7, but it's always been with files/folders made using linux...

In windows, the total number of characters allowed in the whole path which includes drive letter, folders and file names (file, "F:\bob\file" is 11 characters) cannot exceed 255 characters or windows can't do anything with it.

Yes : isn't allowed in file/folder names as are a lot of other characters, these are restrictions placed by windows to stop confusion with say F:\bo:b\file messing things up, under linux you can create files and folders with most of the disallowed characters, again if you do this you are not able to delete the file/folder from windows.

I'd say either the file wasn't made on windows, or some random bug's occured, or the drive's became corrupt, keep trying to get linux working and see if you can delete/rename it in that!

EDIT: linux not booting? Sure you've got a UEFI enabled disc? Try arch linux live ISO if you're unsure, that definately has UEFI and BIOS boot methods enabled on the disc.

EDIT2: Also if you still can't get linux working then any program that can access the drive not using windows API should be able to delete it, i.e. winhex when run as administrator and set to use 'alternative disk mode access'

Edited by n_K

As I said, the file in question cannot be renamed. The folders can and I have. Still no luck.

And now, hitting ESC, F8, F10 or F11 upon boot have no effect. I'm starting to wonder now if there isn't a problem with this computer. The boot is so quick, it goes straight to the HP quickly along with the spinning dots indication Windows is starting. I try hitting F8 immediately after pressing the power button, but it goes to Windows.

:angry:

Are you trying to delete an entire folder and its contents?

You could try, from Command Prompt:

First navigate to the folder you'd like to delete, and enter:

"del /s *"

That should delete all of the files in all subdirectories of the directory you've navigated to - possibly even ones that Windows cannot delete itself. Good luck!

None of you are listening, if it's got special characters in the file name, you cannot delete it using command line, explorer, or any tool that uses windows API!

TRY WINHEX running as administrator with 'alternative disk access' enabled.

As I said, the file in question cannot be renamed. The folders can and I have. Still no luck.

And now, hitting ESC, F8, F10 or F11 upon boot have no effect. I'm starting to wonder now if there isn't a problem with this computer. The boot is so quick, it goes straight to the HP quickly along with the spinning dots indication Windows is starting. I try hitting F8 immediately after pressing the power button, but it goes to Windows.

:angry:

Just had a thought, hit 'Restart' instead of shutdown if that's what you have been doing, I know on my laptop, Windows 8's quick boot removes POST completely, the BIOS POST screen that usually shows is only half that of a reboot

You can also turn off fast boot from Win 8's Control Panel > Power Options > Choose what power buttons do (Left panel)

:laugh: Yea its been suggested and is what we're trying to help with

Hee hee sorry, thanks!

Edit: Was being a lazy sod, did not read the entire thread, been sitting in front of this PC for about 12 hours already. :D

None of you are listening, if it's got special characters in the file name, you cannot delete it using command line, explorer, or any tool that uses windows API!

TRY WINHEX running as administrator with 'alternative disk access' enabled.

I got WinHex from CNET Download.com. I see nothing about 'alternative disk access' anywhere.

As far as loading Linux, still no go. Though I haven't tried to the "enable legacy boot" selection in the BIOS (or UEFI) yet.

It's under settings, the top left checkbox, then close it and reopen it.

Nope. Options > General Options > Lower left is "Alternative Disk Access Method 3"

I suppose that would be it?

e8s50n.jpg

If I am not mistaken, the problem does not lie in the path length (it's well within the Win32 255-character limit), but in the colon ( : ) in the file name. The colon is a forbidden character within a file path under Windows; try putting a colon when renaming a file and you'll see Windows won't even let you type it.

Since files with forbidden names are considered corrupt, running chkdsk (using a command line, run chkdsk F: /f /v) is your best bet to solve the problem. It'll rename or delete the file, depending on the situation.

There are other solutions here if you want to rename a file with a forbidden name without risking chkdsk deleting it:

http://superuser.com...ecial-character

EDIT: saw other posts suggested running chkdsk as well but without explaining why it'll work. It will. Try it.

... saw other posts suggested running chkdsk as well but without explaining why it'll work. It will. Try it.

I'll give it a shot. But It'll probably take quite some time. It's and 3TB external drive with 252,000+ mp3s.

Thanks for the help with this guys. I'll post back the results when chkdsk is done. As for the live boot issue, I'll start a proper thread for that issue if I can't figure it out.

  • 11 months later...

I have had the same problem and before I saw that chkdsk worked I had found a way of deleting the files.  From memory and some notes I took this is what I did:

Right click the file name of the file that won't delete,

Accept displayed option to open in notepad++,

notepad responds "fname doesn't exist. Create it?"  yes,

in notepad save the created file,

right click fn (in Windows Explorer) and delete,

Success  :)

 

 

This topic is now closed to further replies.
  • Posts

    • The constant interface inconsistencies have nothing to do with anything other than their own negligence and refusal to fix it. They are lazy plain and simple. These UI inconsistencies have been there for years and not one tech at Microsoft has taken the time to fix it. It's unacceptable at this point. They keep overloading the OS with ads and garbage nobody asked for but don't fix the issues they have.
    • Surgie matched da Vinci precision in live trials; Unitree’s DoD listing complicates hospital adoption Teleoperated humanoid robots completed live in-vivo surgery for the first time in medical history, UC San Diego researchers reported in Nature on July 8, 2026 — a proof of concept that could eventually extend surgical care to rural communities, battlefields, and remote settings where surgical specialists are absent. But the specific robot at the center of the breakthrough, the Unitree G1, was added to the U.S. Department of Defense's list of Chinese military companies just 30 days before the paper was published, carries a documented wormable security exploit affecting all units ever manufactured, and continuously transmits sensor data to servers in China without notifying the operator. The achievement is real, and the complications are real. Institutions evaluating this technology need to understand both. https://www.techtimes.com/articles/320157/20260711/humanoid-robots-perform-first-live-surgery-pentagon-flags-hardware-chinese-military-tech.htm  
    • Failed to open \EFI\ubuntu\ - Not found That message keeps popping up every time I boot the computer. Stays there for a few seconds than vanishes and the PC loads Linux Mint, but its really annoying the hell out of me, so, does anyone here know and can tell me how to fix that or get rid of it please? Thank you  
    • It's in fashion to bash Microsoft for even existing. It's getting old fast. People talk like other vendors' products are flawless and without issues.
  • Recent Achievements

    • Rising Star
      ExPat went up a rank
      Rising Star
    • Reacting Well
      Gideon Waxfarb earned a badge
      Reacting Well
    • First Post
      NovaEdgeX earned a badge
      First Post
    • One Month Later
      pahariyaseo earned a badge
      One Month Later
    • Week One Done
      pahariyaseo earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      431
    2. 2
      PsYcHoKiLLa
      146
    3. 3
      Nick H.
      89
    4. 4
      Steven P.
      88
    5. 5
      +Edouard
      79
  • Tell a friend

    Love Neowin? Tell a friend!