TITAN RTX Screen corruption


I had CUDA 10 on my pc and I tried to upgrade to CUDA 11 for better performance but my tensorflow was not compatible so I removed CUDA 11 and restarted the PC to install CUDA 10. After restarting, the screen is corrupted showing lines on screen. Seems like I accidently removed something (maybe extra) that made this happen.
These are the commands I used to remove CUDA.

sudo apt-get purge nvidia*
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /usr/local/cuda*

Please someone help, I tried to reinstall Ubuntu on it but It shows the same style of monitor when I get to installation from boot.