Use this script to delete files or folders with long names.
robocopy empty_dir base_nested_dir /purge

Example: Folder with long name is located at D:\Folder\FOLDER-Folder-with-incredibly-long-name. Delete that folder with the following commands

1. Create an empty directory at C:\Empty
2. Open an elevated command prompt
3. Robocopy C:\Empty "D:\Folder" /purge


Advertisements