

You can check that the folder /usr/local/cuda gone.

This is for whom use *.deb files to install Cuda. and remove the export PATH=$PATH:/opt/cuda/bin and export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda/lib:/opt/cuda/lib64 lines of the ~/.bash_profile b installation Purging config/data: sudo apt-get purge nvidia-cuda-toolkit or sudo apt-get purge -auto-remove nvidia-cuda-toolkitĪdditionally, delete the /opt/cuda and ~/NVIDIA_GPU_Computing_SDK folders if they are present. Uninstall nvidia-cuda-toolkit with its dependencies: sudo apt-get remove -auto-remove nvidia-cuda-toolkit Uninstall only nvidia-cuda-toolkit: sudo apt-get remove nvidia-cuda-toolkit Applies to Ubuntu and some other Linux OS`s. Want to remove installed earlier and install a new Cuda toolkit.
