How to uninstall cuda from CENTOS Linux?

I have multiple CUDA installation on my CENTOS machine.
10.1
10.2
11.2

I would like to remove 10.1 and 10.2 only.

The nvidia instructions says:

## RHEL7/CentOS7

To remove CUDA Toolkit:

$ sudo yum remove "cuda*" "*cublas*" "*cufft*" "*curand*" \ "*cusolver*" "*cusparse*" "*npp*" "*nvjpeg*" "nsight*"

To remove NVIDIA Drivers:

$ sudo yum remove "*nvidia*"

I don’t want to run this since I suspect it will remove cuda 11.2 also.

Can you advise how should I proceed?