How do I delete a file that Windows says doesn't exist?How can I delete a file that “Does not exist”How...

Program that converts a number to a letter of the alphabet

A universal method for left-hand alignment of a sequence of equalities

Can a hotel cancel a confirmed reservation?

Do authors have to be politically correct in article-writing?

Checking for the existence of multiple directories

Where are a monster’s hit dice found in the stat block?

How to avoid Replace substituting subscripts?

How to deal with an incendiary email that was recalled

What is better: yes / no radio, or simple checkbox?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

How would a Dictatorship make a country more successful?

Does Windows 10's telemetry include sending *.doc files if Word crashed?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

What to do when being responsible for data protection in your lab, yet advice is ignored?

A minimum of two personnel "are" or "is"?

insert EOF statement before the last line of file

Disable the ">" operator in Rstudio linux terminal

Can you earn endless XP using a Flameskull and its self-revival feature?

What makes the Forgotten Realms "forgotten"?

Slow moving projectiles from a hand-held weapon - how do they reach the target?

Why don't American passenger airlines operate dedicated cargo flights any more?

Every character has a name - does this lead to too many named characters?

Why did other German political parties disband so fast when Hitler was appointed chancellor?



How do I delete a file that Windows says doesn't exist?


How can I delete a file that “Does not exist”How to delete files and folders that cannot be deleted?WinXP cannot access FAT/FAT32 DrivesWhat's going on with the disk space usage here?Cannot fix Windows 8's BCD, “fatal device hardware error”Windows Backup error: 0x81000019 - Check VSS and SPP event logsThousands of bad clusters discovered by chkdsk on external HDDNTFS compression ate all disk space with no possibility to recoverInternal Drive errors on specific drives; others are OKMaximum size of file that can be stored entirely in NTFS Master File Table (MFT)How to determine the actual size on disk for a folder in Windows













0















This is a very similar problem to this QA ( How can I delete a file that "Does not exist" ), except I'm on an entirely Windows computer, whereas the OP in that question was SSHing to a NAS running Linux.



I was using git with GitKraken and was performing a merge that I later aborted. During the merge I was diffing two files from two commits in the same branch and git (or GitKraken - I'm not sure who was responsible for the file, exactly) created two files on-disk representing a merge-conflicted file, each file represents the file's state from each commit.



When I was done, I tried to delete the files (it failed to clean-up after itself) - one of the two files was deleted successfully, but the other file cannot be deleted.



Screenshot of Item Not Found error message




  • The file exists on a local volume (a Samsung PCI-Express NVMe SSD )

  • The volume is formatted NTFS 3.1 running Windows Server 2016

  • The file appears in Windows Explorer and dir (see screenshot above)


  • Attempting to perform any operation on the file in Windows explorer, including Move, Rename, Delete, and Shift+Delete, results in this error message:




    Item Not Found

    Could not find this item

    This is no longer located in C:gitredacted

    Verify the item's location and try again.



    DemoServiceClient.cs~WIP

    Type: File

    Size: 8.35KB

    Date modified: 2017-12-14 12:30



    [Try Again] [Cancel]





  • The File Properties dialog is empty:



    enter image description here




  • The File Properties dialog's Security tab says:




    The requested security information is either unavailable or can't be displayed




  • The total filename length is 130 characters, well within MAX_PATH (260 characters)



  • The file appears in dir /a as a normal file (i.e. not an NTFS link or reparse point):



     Directory of C:gitredacted

    2017-12-14 12:36 <DIR> .
    2017-12-14 12:36 <DIR> ..
    2017-12-14 12:30 8,559 DemoServiceClient.cs~WIP.
    1 File(s) 8,559 bytes
    2 Dir(s) 223,416,360,960 bytes free



  • Running del DemoServiceClient.cs~WIP gives me this error:




    Could Not Find C:gitredactedDemoServiceClient.cs~WIP`





  • chkdsk reported no issues:



    Stage 1: Examining basic file system structure ...
    1140992 file records processed.
    File verification completed.
    19089 large file records processed.
    0 bad file records processed.

    Stage 2: Examining file name linkage ...
    1527444 index entries processed.
    Index verification completed.
    0 unindexed files scanned.
    0 unindexed files recovered to lost and found.

    Stage 3: Examining security descriptors ...
    Security descriptor verification completed.
    193227 data files processed.
    CHKDSK is verifying Usn Journal...
    34291080 USN bytes processed.
    Usn Journal verification completed.

    Windows has scanned the file system and found no problems.
    No further action is required.

    499526655 KB total disk space.
    290439980 KB in 856509 files.
    464848 KB in 193228 indexes.
    0 KB in bad sectors.
    1258155 KB in use by the system.
    65536 KB occupied by the log file.
    207363672 KB available on disk.

    4096 bytes in each allocation unit.
    124881663 total allocation units on disk.
    51840918 allocation units available on disk.











share|improve this question


















  • 2





    Try restarting and see if the file still exists.

    – DavidPostill
    Dec 15 '17 at 20:30






  • 1





    In cmd type dir /x and see if you can delete the 8.3 name. I think the trailing . is causing your problem.

    – AFH
    Dec 15 '17 at 21:02


















0















This is a very similar problem to this QA ( How can I delete a file that "Does not exist" ), except I'm on an entirely Windows computer, whereas the OP in that question was SSHing to a NAS running Linux.



I was using git with GitKraken and was performing a merge that I later aborted. During the merge I was diffing two files from two commits in the same branch and git (or GitKraken - I'm not sure who was responsible for the file, exactly) created two files on-disk representing a merge-conflicted file, each file represents the file's state from each commit.



When I was done, I tried to delete the files (it failed to clean-up after itself) - one of the two files was deleted successfully, but the other file cannot be deleted.



Screenshot of Item Not Found error message




  • The file exists on a local volume (a Samsung PCI-Express NVMe SSD )

  • The volume is formatted NTFS 3.1 running Windows Server 2016

  • The file appears in Windows Explorer and dir (see screenshot above)


  • Attempting to perform any operation on the file in Windows explorer, including Move, Rename, Delete, and Shift+Delete, results in this error message:




    Item Not Found

    Could not find this item

    This is no longer located in C:gitredacted

    Verify the item's location and try again.



    DemoServiceClient.cs~WIP

    Type: File

    Size: 8.35KB

    Date modified: 2017-12-14 12:30



    [Try Again] [Cancel]





  • The File Properties dialog is empty:



    enter image description here




  • The File Properties dialog's Security tab says:




    The requested security information is either unavailable or can't be displayed




  • The total filename length is 130 characters, well within MAX_PATH (260 characters)



  • The file appears in dir /a as a normal file (i.e. not an NTFS link or reparse point):



     Directory of C:gitredacted

    2017-12-14 12:36 <DIR> .
    2017-12-14 12:36 <DIR> ..
    2017-12-14 12:30 8,559 DemoServiceClient.cs~WIP.
    1 File(s) 8,559 bytes
    2 Dir(s) 223,416,360,960 bytes free



  • Running del DemoServiceClient.cs~WIP gives me this error:




    Could Not Find C:gitredactedDemoServiceClient.cs~WIP`





  • chkdsk reported no issues:



    Stage 1: Examining basic file system structure ...
    1140992 file records processed.
    File verification completed.
    19089 large file records processed.
    0 bad file records processed.

    Stage 2: Examining file name linkage ...
    1527444 index entries processed.
    Index verification completed.
    0 unindexed files scanned.
    0 unindexed files recovered to lost and found.

    Stage 3: Examining security descriptors ...
    Security descriptor verification completed.
    193227 data files processed.
    CHKDSK is verifying Usn Journal...
    34291080 USN bytes processed.
    Usn Journal verification completed.

    Windows has scanned the file system and found no problems.
    No further action is required.

    499526655 KB total disk space.
    290439980 KB in 856509 files.
    464848 KB in 193228 indexes.
    0 KB in bad sectors.
    1258155 KB in use by the system.
    65536 KB occupied by the log file.
    207363672 KB available on disk.

    4096 bytes in each allocation unit.
    124881663 total allocation units on disk.
    51840918 allocation units available on disk.











share|improve this question


















  • 2





    Try restarting and see if the file still exists.

    – DavidPostill
    Dec 15 '17 at 20:30






  • 1





    In cmd type dir /x and see if you can delete the 8.3 name. I think the trailing . is causing your problem.

    – AFH
    Dec 15 '17 at 21:02
















0












0








0








This is a very similar problem to this QA ( How can I delete a file that "Does not exist" ), except I'm on an entirely Windows computer, whereas the OP in that question was SSHing to a NAS running Linux.



I was using git with GitKraken and was performing a merge that I later aborted. During the merge I was diffing two files from two commits in the same branch and git (or GitKraken - I'm not sure who was responsible for the file, exactly) created two files on-disk representing a merge-conflicted file, each file represents the file's state from each commit.



When I was done, I tried to delete the files (it failed to clean-up after itself) - one of the two files was deleted successfully, but the other file cannot be deleted.



Screenshot of Item Not Found error message




  • The file exists on a local volume (a Samsung PCI-Express NVMe SSD )

  • The volume is formatted NTFS 3.1 running Windows Server 2016

  • The file appears in Windows Explorer and dir (see screenshot above)


  • Attempting to perform any operation on the file in Windows explorer, including Move, Rename, Delete, and Shift+Delete, results in this error message:




    Item Not Found

    Could not find this item

    This is no longer located in C:gitredacted

    Verify the item's location and try again.



    DemoServiceClient.cs~WIP

    Type: File

    Size: 8.35KB

    Date modified: 2017-12-14 12:30



    [Try Again] [Cancel]





  • The File Properties dialog is empty:



    enter image description here




  • The File Properties dialog's Security tab says:




    The requested security information is either unavailable or can't be displayed




  • The total filename length is 130 characters, well within MAX_PATH (260 characters)



  • The file appears in dir /a as a normal file (i.e. not an NTFS link or reparse point):



     Directory of C:gitredacted

    2017-12-14 12:36 <DIR> .
    2017-12-14 12:36 <DIR> ..
    2017-12-14 12:30 8,559 DemoServiceClient.cs~WIP.
    1 File(s) 8,559 bytes
    2 Dir(s) 223,416,360,960 bytes free



  • Running del DemoServiceClient.cs~WIP gives me this error:




    Could Not Find C:gitredactedDemoServiceClient.cs~WIP`





  • chkdsk reported no issues:



    Stage 1: Examining basic file system structure ...
    1140992 file records processed.
    File verification completed.
    19089 large file records processed.
    0 bad file records processed.

    Stage 2: Examining file name linkage ...
    1527444 index entries processed.
    Index verification completed.
    0 unindexed files scanned.
    0 unindexed files recovered to lost and found.

    Stage 3: Examining security descriptors ...
    Security descriptor verification completed.
    193227 data files processed.
    CHKDSK is verifying Usn Journal...
    34291080 USN bytes processed.
    Usn Journal verification completed.

    Windows has scanned the file system and found no problems.
    No further action is required.

    499526655 KB total disk space.
    290439980 KB in 856509 files.
    464848 KB in 193228 indexes.
    0 KB in bad sectors.
    1258155 KB in use by the system.
    65536 KB occupied by the log file.
    207363672 KB available on disk.

    4096 bytes in each allocation unit.
    124881663 total allocation units on disk.
    51840918 allocation units available on disk.











share|improve this question














This is a very similar problem to this QA ( How can I delete a file that "Does not exist" ), except I'm on an entirely Windows computer, whereas the OP in that question was SSHing to a NAS running Linux.



I was using git with GitKraken and was performing a merge that I later aborted. During the merge I was diffing two files from two commits in the same branch and git (or GitKraken - I'm not sure who was responsible for the file, exactly) created two files on-disk representing a merge-conflicted file, each file represents the file's state from each commit.



When I was done, I tried to delete the files (it failed to clean-up after itself) - one of the two files was deleted successfully, but the other file cannot be deleted.



Screenshot of Item Not Found error message




  • The file exists on a local volume (a Samsung PCI-Express NVMe SSD )

  • The volume is formatted NTFS 3.1 running Windows Server 2016

  • The file appears in Windows Explorer and dir (see screenshot above)


  • Attempting to perform any operation on the file in Windows explorer, including Move, Rename, Delete, and Shift+Delete, results in this error message:




    Item Not Found

    Could not find this item

    This is no longer located in C:gitredacted

    Verify the item's location and try again.



    DemoServiceClient.cs~WIP

    Type: File

    Size: 8.35KB

    Date modified: 2017-12-14 12:30



    [Try Again] [Cancel]





  • The File Properties dialog is empty:



    enter image description here




  • The File Properties dialog's Security tab says:




    The requested security information is either unavailable or can't be displayed




  • The total filename length is 130 characters, well within MAX_PATH (260 characters)



  • The file appears in dir /a as a normal file (i.e. not an NTFS link or reparse point):



     Directory of C:gitredacted

    2017-12-14 12:36 <DIR> .
    2017-12-14 12:36 <DIR> ..
    2017-12-14 12:30 8,559 DemoServiceClient.cs~WIP.
    1 File(s) 8,559 bytes
    2 Dir(s) 223,416,360,960 bytes free



  • Running del DemoServiceClient.cs~WIP gives me this error:




    Could Not Find C:gitredactedDemoServiceClient.cs~WIP`





  • chkdsk reported no issues:



    Stage 1: Examining basic file system structure ...
    1140992 file records processed.
    File verification completed.
    19089 large file records processed.
    0 bad file records processed.

    Stage 2: Examining file name linkage ...
    1527444 index entries processed.
    Index verification completed.
    0 unindexed files scanned.
    0 unindexed files recovered to lost and found.

    Stage 3: Examining security descriptors ...
    Security descriptor verification completed.
    193227 data files processed.
    CHKDSK is verifying Usn Journal...
    34291080 USN bytes processed.
    Usn Journal verification completed.

    Windows has scanned the file system and found no problems.
    No further action is required.

    499526655 KB total disk space.
    290439980 KB in 856509 files.
    464848 KB in 193228 indexes.
    0 KB in bad sectors.
    1258155 KB in use by the system.
    65536 KB occupied by the log file.
    207363672 KB available on disk.

    4096 bytes in each allocation unit.
    124881663 total allocation units on disk.
    51840918 allocation units available on disk.








windows ntfs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 15 '17 at 20:25









DaiDai

87731432




87731432








  • 2





    Try restarting and see if the file still exists.

    – DavidPostill
    Dec 15 '17 at 20:30






  • 1





    In cmd type dir /x and see if you can delete the 8.3 name. I think the trailing . is causing your problem.

    – AFH
    Dec 15 '17 at 21:02
















  • 2





    Try restarting and see if the file still exists.

    – DavidPostill
    Dec 15 '17 at 20:30






  • 1





    In cmd type dir /x and see if you can delete the 8.3 name. I think the trailing . is causing your problem.

    – AFH
    Dec 15 '17 at 21:02










2




2





Try restarting and see if the file still exists.

– DavidPostill
Dec 15 '17 at 20:30





Try restarting and see if the file still exists.

– DavidPostill
Dec 15 '17 at 20:30




1




1





In cmd type dir /x and see if you can delete the 8.3 name. I think the trailing . is causing your problem.

– AFH
Dec 15 '17 at 21:02







In cmd type dir /x and see if you can delete the 8.3 name. I think the trailing . is causing your problem.

– AFH
Dec 15 '17 at 21:02












2 Answers
2






active

oldest

votes


















-1














I had the same problem and found a solution here.



Edit: You will HAVE to move/rename the file into a folder you can delete with the provided solution (or check if you can already delete the file's parent folder).



Edit2: I also just found out that NTFS (or Windows itself) does not like/allow for file names to end with a dot (or a space). Try removing the dot from the end of the file name (may need to do that from CMD).



Here goes Rayza73's answer fo reference.

I tried pretty much all he did, and also tried renaming the folder a few times.




I had this same problem using Server 2012 Std. I tried various options
of taking ownership of the parent folder because the Security
properties of the folder I was trying to delete were blank, using CMD
and Dir /x etc. I even tried sharing the parent folder and then using
Server 2008 R2. None of them worked. When I tried Dir /x Server 2012
doesn't show the 8 character filename with the ~1. I tried typing it
in myself, but that didn't work either. I then found that there was a
space at the end of the folder name. I then tried all the CMD options
again using a space, still no luck. Then I finally stumbled upon this
solution:



Open CMD and then type:




rd /s "\?D:badfolderpath "




example:




rd /s "\?D:Sharedatafolder1folder2 "




note the space after folder2 as per the space in the folder name.

Obviously D: is the drive that has the folder on it.




In my case there was no space in the folder name, just a stubborn folder left on a failed Teracopy run.

But my folder had several folders inside it that could not be deleted.

This did the trick.



My run was:
rd /s "\?G:BackupsMacMiniBADFOLDER"



Tip: You can use TAB to autocomplete the Folder names in cmd.






share|improve this answer

































    -1














    Sometimes some process may be left open preventing the deletion of the file. You can check task manager and kill the tasks you have started.



    Sometimes explorer.exe itself is preventing the deletion. You can restart explorer:




    • Go to "Task Manager"

    • End Task "Explorer"

    • File -> "Run new task"

    • Type "explorer" to run explorer task again

    • Check the file is gone






    share|improve this answer








    New contributor




    Eagle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1277529%2fhow-do-i-delete-a-file-that-windows-says-doesnt-exist%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      -1














      I had the same problem and found a solution here.



      Edit: You will HAVE to move/rename the file into a folder you can delete with the provided solution (or check if you can already delete the file's parent folder).



      Edit2: I also just found out that NTFS (or Windows itself) does not like/allow for file names to end with a dot (or a space). Try removing the dot from the end of the file name (may need to do that from CMD).



      Here goes Rayza73's answer fo reference.

      I tried pretty much all he did, and also tried renaming the folder a few times.




      I had this same problem using Server 2012 Std. I tried various options
      of taking ownership of the parent folder because the Security
      properties of the folder I was trying to delete were blank, using CMD
      and Dir /x etc. I even tried sharing the parent folder and then using
      Server 2008 R2. None of them worked. When I tried Dir /x Server 2012
      doesn't show the 8 character filename with the ~1. I tried typing it
      in myself, but that didn't work either. I then found that there was a
      space at the end of the folder name. I then tried all the CMD options
      again using a space, still no luck. Then I finally stumbled upon this
      solution:



      Open CMD and then type:




      rd /s "\?D:badfolderpath "




      example:




      rd /s "\?D:Sharedatafolder1folder2 "




      note the space after folder2 as per the space in the folder name.

      Obviously D: is the drive that has the folder on it.




      In my case there was no space in the folder name, just a stubborn folder left on a failed Teracopy run.

      But my folder had several folders inside it that could not be deleted.

      This did the trick.



      My run was:
      rd /s "\?G:BackupsMacMiniBADFOLDER"



      Tip: You can use TAB to autocomplete the Folder names in cmd.






      share|improve this answer






























        -1














        I had the same problem and found a solution here.



        Edit: You will HAVE to move/rename the file into a folder you can delete with the provided solution (or check if you can already delete the file's parent folder).



        Edit2: I also just found out that NTFS (or Windows itself) does not like/allow for file names to end with a dot (or a space). Try removing the dot from the end of the file name (may need to do that from CMD).



        Here goes Rayza73's answer fo reference.

        I tried pretty much all he did, and also tried renaming the folder a few times.




        I had this same problem using Server 2012 Std. I tried various options
        of taking ownership of the parent folder because the Security
        properties of the folder I was trying to delete were blank, using CMD
        and Dir /x etc. I even tried sharing the parent folder and then using
        Server 2008 R2. None of them worked. When I tried Dir /x Server 2012
        doesn't show the 8 character filename with the ~1. I tried typing it
        in myself, but that didn't work either. I then found that there was a
        space at the end of the folder name. I then tried all the CMD options
        again using a space, still no luck. Then I finally stumbled upon this
        solution:



        Open CMD and then type:




        rd /s "\?D:badfolderpath "




        example:




        rd /s "\?D:Sharedatafolder1folder2 "




        note the space after folder2 as per the space in the folder name.

        Obviously D: is the drive that has the folder on it.




        In my case there was no space in the folder name, just a stubborn folder left on a failed Teracopy run.

        But my folder had several folders inside it that could not be deleted.

        This did the trick.



        My run was:
        rd /s "\?G:BackupsMacMiniBADFOLDER"



        Tip: You can use TAB to autocomplete the Folder names in cmd.






        share|improve this answer




























          -1












          -1








          -1







          I had the same problem and found a solution here.



          Edit: You will HAVE to move/rename the file into a folder you can delete with the provided solution (or check if you can already delete the file's parent folder).



          Edit2: I also just found out that NTFS (or Windows itself) does not like/allow for file names to end with a dot (or a space). Try removing the dot from the end of the file name (may need to do that from CMD).



          Here goes Rayza73's answer fo reference.

          I tried pretty much all he did, and also tried renaming the folder a few times.




          I had this same problem using Server 2012 Std. I tried various options
          of taking ownership of the parent folder because the Security
          properties of the folder I was trying to delete were blank, using CMD
          and Dir /x etc. I even tried sharing the parent folder and then using
          Server 2008 R2. None of them worked. When I tried Dir /x Server 2012
          doesn't show the 8 character filename with the ~1. I tried typing it
          in myself, but that didn't work either. I then found that there was a
          space at the end of the folder name. I then tried all the CMD options
          again using a space, still no luck. Then I finally stumbled upon this
          solution:



          Open CMD and then type:




          rd /s "\?D:badfolderpath "




          example:




          rd /s "\?D:Sharedatafolder1folder2 "




          note the space after folder2 as per the space in the folder name.

          Obviously D: is the drive that has the folder on it.




          In my case there was no space in the folder name, just a stubborn folder left on a failed Teracopy run.

          But my folder had several folders inside it that could not be deleted.

          This did the trick.



          My run was:
          rd /s "\?G:BackupsMacMiniBADFOLDER"



          Tip: You can use TAB to autocomplete the Folder names in cmd.






          share|improve this answer















          I had the same problem and found a solution here.



          Edit: You will HAVE to move/rename the file into a folder you can delete with the provided solution (or check if you can already delete the file's parent folder).



          Edit2: I also just found out that NTFS (or Windows itself) does not like/allow for file names to end with a dot (or a space). Try removing the dot from the end of the file name (may need to do that from CMD).



          Here goes Rayza73's answer fo reference.

          I tried pretty much all he did, and also tried renaming the folder a few times.




          I had this same problem using Server 2012 Std. I tried various options
          of taking ownership of the parent folder because the Security
          properties of the folder I was trying to delete were blank, using CMD
          and Dir /x etc. I even tried sharing the parent folder and then using
          Server 2008 R2. None of them worked. When I tried Dir /x Server 2012
          doesn't show the 8 character filename with the ~1. I tried typing it
          in myself, but that didn't work either. I then found that there was a
          space at the end of the folder name. I then tried all the CMD options
          again using a space, still no luck. Then I finally stumbled upon this
          solution:



          Open CMD and then type:




          rd /s "\?D:badfolderpath "




          example:




          rd /s "\?D:Sharedatafolder1folder2 "




          note the space after folder2 as per the space in the folder name.

          Obviously D: is the drive that has the folder on it.




          In my case there was no space in the folder name, just a stubborn folder left on a failed Teracopy run.

          But my folder had several folders inside it that could not be deleted.

          This did the trick.



          My run was:
          rd /s "\?G:BackupsMacMiniBADFOLDER"



          Tip: You can use TAB to autocomplete the Folder names in cmd.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jul 23 '18 at 23:04

























          answered Jul 23 '18 at 6:39









          Gus NevesGus Neves

          21924




          21924

























              -1














              Sometimes some process may be left open preventing the deletion of the file. You can check task manager and kill the tasks you have started.



              Sometimes explorer.exe itself is preventing the deletion. You can restart explorer:




              • Go to "Task Manager"

              • End Task "Explorer"

              • File -> "Run new task"

              • Type "explorer" to run explorer task again

              • Check the file is gone






              share|improve this answer








              New contributor




              Eagle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                -1














                Sometimes some process may be left open preventing the deletion of the file. You can check task manager and kill the tasks you have started.



                Sometimes explorer.exe itself is preventing the deletion. You can restart explorer:




                • Go to "Task Manager"

                • End Task "Explorer"

                • File -> "Run new task"

                • Type "explorer" to run explorer task again

                • Check the file is gone






                share|improve this answer








                New contributor




                Eagle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  -1












                  -1








                  -1







                  Sometimes some process may be left open preventing the deletion of the file. You can check task manager and kill the tasks you have started.



                  Sometimes explorer.exe itself is preventing the deletion. You can restart explorer:




                  • Go to "Task Manager"

                  • End Task "Explorer"

                  • File -> "Run new task"

                  • Type "explorer" to run explorer task again

                  • Check the file is gone






                  share|improve this answer








                  New contributor




                  Eagle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  Sometimes some process may be left open preventing the deletion of the file. You can check task manager and kill the tasks you have started.



                  Sometimes explorer.exe itself is preventing the deletion. You can restart explorer:




                  • Go to "Task Manager"

                  • End Task "Explorer"

                  • File -> "Run new task"

                  • Type "explorer" to run explorer task again

                  • Check the file is gone







                  share|improve this answer








                  New contributor




                  Eagle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Eagle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 17 mins ago









                  EagleEagle

                  1




                  1




                  New contributor




                  Eagle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Eagle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Eagle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1277529%2fhow-do-i-delete-a-file-that-windows-says-doesnt-exist%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

                      Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                      VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...