Assuming you are on windows:
What I always do is use
subst to create a driveletter asccociation with part of the path.
Then go to the new driveletter and navigate to the files that have long names. You should now be able to rename/delete/etc them. The reason this works is because the path itself is no longer containing >255 chars.