From what I've read on these forums over the years these programs can cause problems and even delete all the duplicates including the originals. You can Google for such but I would recommend to do it manually. Start with duplicated folder first but make sure you don't mess it up. Not an easy task if they've not been labelled correctly.
What is ransomware and how do I protect my PC from WannaCry?