Deleting a very long path in a directory
Try
robocopy /e /b /purge c:\empty c:\folder-to-delete
del and rmdir commands can't delete folders with long names. But 7-Zip can! Right click on a folder which should be deleted. Select "Add to Archive" in 7-Zip context menu and set "Delete files after compression" option in "Add to Archive" 7-Zip dialog. 7-Zip create archive files and delete folder with long paths! After that you can delete archive file.