3

I was working on my code and tried to run a migration against a my local database. Migration couldn't be applied but this folder was created: picture-1 picture-2

Soon after, my whole solution couldn't be loaded and I cannot still delete this folder. What do I do? Where did it come from?

I tried the following:

1) Reboot

2) Safe boot

3) Open CMD with administrator rights and run rmdir "'.." but that gives me an error stating that such path doesn't exist

LPChip
  • 59,229
  • 10
  • 98
  • 140
droft1312
  • 145
  • 6
  • 1
    Have you tried rebooting first? – DavidPostill Apr 17 '20 at 16:39
  • @DavidPostill yes, I also tried to safe boot but that didn't work either – droft1312 Apr 17 '20 at 16:40
  • So please [edit] the question and add that information. – DavidPostill Apr 17 '20 at 16:40
  • 1
    You can get Unlocker 1.92 (MajorGeeks) and use that to delete the items in the folder and then delete the folder. Unlocker removes locking handles and you often have to restart after deleting files. – John Apr 17 '20 at 16:43
  • Can you try moving the folder to the desktop or elsewhere and deleting it from there? – Meow_ly Apr 17 '20 at 16:47
  • 1
    @Meow_ly no, it doesn't allow me to do that (to move the folder). Gives the same error as in the picture. – droft1312 Apr 17 '20 at 16:48
  • @John are you sure this Unlocker is safe? I downloaded the exe file and ran it through VirusTotal that indicated this file as a virus. – droft1312 Apr 17 '20 at 17:11
  • Did you get it from Major Geeks? I have been using it for years and it is fine. Not a virus. Try also Softpedia. I have always found it to be a useful tool – John Apr 17 '20 at 17:15
  • 1
    You probably have to use command prompt and get in from a different stream. Can you delete the folder if you use the following path? `\\.\D:\Projects\blur\blur\Infrastructure\'..` so basically preceed the path with \\.\ – LPChip Apr 17 '20 at 17:24
  • 2
    Are you sure about the folder name? If it contains a backspace or something similar you don't see what you should enter as folder name to delete. I would copy all useful files and (try to) delete the parent folder recursively. – harper Apr 17 '20 at 17:41
  • @harper your solution worked. thank you – droft1312 Apr 17 '20 at 17:50
  • 1
    Might try one of these alternative delete methods: https://superuser.com/questions/78434/how-to-delete-directories-with-path-names-too-long-for-normal-delete/78458 – User Apr 18 '20 at 01:01
  • 1
    Does this answer your question? [Can't delete folder in Windows 7](https://superuser.com/questions/72280/cant-delete-folder-in-windows-7) – jwzumwalt Apr 22 '20 at 19:33

3 Answers3

1

I got past similar stuff with:

cd \just\above\the\problem\folder

rem dir should show the problem folder name

rmdir /s /q "problem folder"

0

Try to use Unlocker Program.

You can download at :
https://www.softpedia.com/get/System/System-Miscellaneous/Unlocker.shtml#download

After you install the program:
1. Open the program.
2. The Browse File or Folder Window will be shown. Locate this to your undeletable folder. Then click OK.
Browse File or Folder Window

  1. On the action selection, select Delete and press OK.
    enter image description here
-1

The solution is to "cd" into the folder's grandparent and recursively delete the parent folder by running rmdir <folder> /s /q.

droft1312
  • 145
  • 6
  • Downvoted because you propose an command that is not supported by Windows although the question is tagged with "Windows". – harper Apr 19 '20 at 05:31
  • 1
    @harper my apologies, I have turned on the possibility of using linux commands on my windows machine and forgot those commands are not available by default – droft1312 Apr 19 '20 at 07:21
  • No need to apologise. Take it as an encouragement to improve your answer. – harper Apr 20 '20 at 18:45