The cleanest way is to remove them all, then install what you need, oldest to newest if you want to keep more than one version.
But you also may need to consider that the Sonar programs and features do not take much disk space. Leaving them in place is the easy way. Some plugins that you may have used in projects are not always available in the latest version of Sonar.
The missing plugins can be recovered after installing the latest version of Sonar, by running the previous Sonar installers in advanced mode and selecting only the plugins you wish to install, while skipping the program files, etc.