Problem uninstaling anconda

I tried to uninstall Anaconda from the control panel but it stopped just at the beginning giving this message:
“Failed to run pre_uninstall”

I then tried to install a new version so I could remove the older one, but I still couldn’t.