uninstall cuda ubuntu code example
Example 1: ubuntu remove cuda
sudo apt-get purge nvidia*
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /usr/local/cuda*
Example 2: how to uninstall cudnn ubuntu
apt-cache search cudnn
sudo apt-get purge nvidia*
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /usr/local/cuda*
apt-cache search cudnn