My own very late answer is similar to that of alex3025. The main change was that I ran two other procedures before running chckdsk.
The folder was on my desktop and this was backed up on OneDrive (i.e. the path was something like *\Onedrive\Desktop\FOLDERtoDELETE)
The entire process was:
- Run Deployment Image Servicing and Management (DISM.exe) as an admin
(win to open the Start menu> > start searching for "dism" > choose "Run as Administrator" from the left pane or right-click and choose this option): RunDISM.exe /Online /Cleanup-image /Restorehealth
Note: This step may take a few minutes to start and up to 30 minutes to complete. It also got stuck in the middle on the same percentage for about 10 minutes.
Don't close the cmd window when you're done.
- While still in the same cmd window, Run System File Checker:
sfc /scannow
Note: This step may take a few minutes to start and up to 45 minutes to complete.
- Run Checkdisk with the Fix and Recover parameters:
chkdsk /f /r
Note: You will have to restart the computer, as chkdsk is run before lodaing up the main components of Windows
- If the file is also stored on your cloud and sync is enabled, I would suggest that you delete it online sometime prior to the next step. In my case I went to OneDrive online and deleted the bugger.
- While pressing SHIFT, delete the file directly to avoid the Recycle Bin.
before that, I had already tried several other methods described here and on Microsoft support and community support pages.
Through Safe Mode with both cmd and Powershell (using the Force argument in both of them, and after having taking ownership of the directory and all the sub-directories. Also through the Command Prompt Startup Mode, executing DEL /F /S/ Q "filename"
.
Nothing worked.
In the windows GUI I get no errors at all and via cmd and powershell I always got the above error message.