gpu

Note this might remove your cuda installation as well

sudo apt-get autoremove

Recommended if .deb files from NVIDIA were installed

Change 1404 to the exact system version or use tab autocompletion

After executing this file, /etc/apt/sources.list.d should contain no files related to nvidia or cuda

sudo dpkg -P cuda-repo-ubuntu1404