How to force delete a folder windows 10. You can press windows r keys on the keyboard type cmd and press ctrl shift enter to run windows command prompt as administrator. The solution i finally managed to delete the file and folders by rebooting into cmd prompt troubleshooting mode at lock screen hold shift click power icon and reboot then choose reboot to command prompt. To force delete a file or folder in windows 10 pc you can use either a third party force delete folder software and file deleter software like unlocker or you can go with the windows command prompt which comes pre installed in all microsoft windows operating systems.
You can also delete a filefolder permanently by selecting it and pressing the shiftdelete keys. When deleted the file is moved to the recycle bin so that you can recover the deleted data when needed. You just have to right click on the item you want to delete and from the context menu select the delete option.
From there i could navigate to the file and delete it with del f filename and the folders with rmdir s directory. To bypass the recycle bin and permanently delete a file you can use the shift delete keyboard shortcut. Deleting a file or folder in windows 10 is generally quite easy.
However some files or folders are stubborn. Select properties from the context menu and the property window will turn up immediately. You can generally delete almost any file or folder by simply pressing the delete button on the keyboard.