Try this:
- Shift-right-click the folder name in Explorer and select Copy as path.
- Open a Cmd window (⊞-R cmd).
- Enter *rd /s /q \?* and then right-click to paste in the copied path. The result should look something like this:
rd /s /q \?"C:\some folder" 4. Press Enter to delete the folder.
Note: In Windows 11, Copy as path is also available with just a right-click (i.e. shift not needed).