Remove Developer libraries?

After installing the pre-built libraries I downloaded the SDL2 source and built and installed the dev library so I could better understand a bug I was investigating.

It worked very well.

After I was finished I tried to reinstall the pre-built library but I am still getting assert dialog windows popping up. I can see in /usr/lib/X86_64-linux-gnu that the developer libraries have been replaced with the prebuilt ones so I’m not sure what is going on! (I did perform an ldconfig as well!)

What do I need to do to correctly revert back to the pre-built libraries?

Should I just purge them and then re-install?

It is only the libSDL2a, & libSDL2main.a that I changed!