How to delete a file with a name that is too long

Recently, we had some files on a Windows 2012 server that have file names that are too long. The UNC path length would be okay if the file name was not too long. And as it would happen on this partition we left the short name 8.3 option disabled (as recommended by Microsoft). So, how…