Run CMD as Administrator

rd /s \\?\"C:\bad\folder\path"`

Replace "C:\bad\folder\path" with the folder or file’s path.