- Open command prompt
- Navigate to the folder containing the file with long name (>255 characters)
- subst z: . to create the drive-letter association to the path.
- You should now be able to delete, rename or make any other changes required to the file
- subst /d z: to remove the drive (Alternatively, just reboot the computer)