Uninstall CUDA on macOS

Follow the instructions here: https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#uninstall

✘  ~  sudo uninstall_cuda_drv.pl
Password:
Removing /usr/local/bin/.cuda_driver_uninstall_manifest_do_not_delete.txt
Removing /Library/Frameworks/CUDA.framework/Versions/Current
Removing /Library/Frameworks/CUDA.framework/Resources
Removing /Library/Frameworks/CUDA.framework/Libraries
Removing /Library/Frameworks/CUDA.framework/Headers
Removing /Library/Frameworks/CUDA.framework/CUDA
Removing /Library/Frameworks/CUDA.framework/Versions/A/Headers/cuda.h
Expected file, but it no longer exists: /usr/local/bin/.cuda_driver_uninstall_manifest_do_not_delete.txt
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources/NV_DesignedFor_CUDA_3D_sm.png
Removing /Library/Frameworks/CUDA.framework/Versions/A/CUDA
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources/com.nvidia.cuda.launcher.plist
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_378.05.05.15_mercury.dylib
Removing /Library/Extensions/CUDA.kext/Contents/Info.plist
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources/English.lproj/InfoPlist.strings
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_387.10.10.10.25_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/_CodeSignature/CodeRequirements-1
Removing /Library/Frameworks/CUDA.framework/Versions/A/Resources/cudad
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources/English.lproj/CUDA.nib
Removing /Library/Frameworks/CUDA.framework/Versions/A/_CodeSignature/CodeResources
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_367.15.10.45_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_378.10.10.10.15_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_387.10.10.10.15_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_367.15.10.15_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_355.10.05.05_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Resources/unifiedmemory
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources/CUDAd.sh
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/MacOS/CUDA Preferences
Removing /usr/local/cuda/lib/libcuda.dylib
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources/Localizable.strings
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_355.10.05.55_mercury.dylib
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources/Get_Info.tiff
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_378.05.05.25_mercury.dylib
Removing /Library/Extensions/CUDA.kext/Contents/MacOS/CUDA
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_355.10.05.35_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Resources/compatibility_check
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_367.15.10.05_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/_CodeSignature/CodeRequirements
Removing /Library/Frameworks/CUDA.framework/Versions/A/Headers/cudaGL.h
Removing /Library/Frameworks/CUDA.framework/Versions/A/Resources/Info.plist
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_387.10.10.10.20_mercury.dylib
Removing /Library/LaunchDaemons/com.nvidia.cudad.plist
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Info.plist
Removing /Library/LaunchAgents/com.nvidia.CUDASoftwareUpdate.plist
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_367.15.10.35_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libfatbinaryLoader.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/_CodeSignature/CodeSignature
Removing /Library/Frameworks/CUDA.framework/Versions/A/Headers/cudaProfiler.h
Removing /usr/local/bin/uninstall_cuda_drv.pl
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_355.10.05.15_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_378.10.10.10.20_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libptxJitCompiler.dylib
Removing /Library/LaunchDaemons/com.nvidia.cuda.launcher.plist
Removing /Library/Extensions/CUDA.kext/Contents/Resources/English.lproj/InfoPlist.strings
Removing /Library/Frameworks/CUDA.framework/Versions/A/Headers/cudadebugger.h
Removing /Library/Frameworks/CUDA.framework/Versions/A/_CodeSignature/CodeDirectory
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_378.05.05.05_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_355.10.05.45_mercury.dylib
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_367.15.10.25_mercury.dylib
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources/NVIDIAIcon.icns
Removing /Library/Extensions/CUDA.kext/Contents/_CodeSignature/CodeResources
Removing /Library/Frameworks/CUDA.framework/Versions/A/Libraries/libcuda_378.10.10.10.25_mercury.dylib
Removing /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/_CodeSignature/CodeResources
Removing directory /usr/local/cuda/lib
Removing directory /usr/local/cuda
Not removing directory, it is not empty: /usr/local/bin
Not removing directory, it is not empty: /usr/local
Not removing directory, it is not empty: /usr
Removing directory /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/_CodeSignature
Removing directory /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources/English.lproj
Removing directory /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/Resources
Removing directory /Library/PreferencePanes/CUDA Preferences.prefPane/Contents/MacOS
Removing directory /Library/PreferencePanes/CUDA Preferences.prefPane/Contents
Removing directory /Library/PreferencePanes/CUDA Preferences.prefPane
Not removing directory, it is not empty: /Library/PreferencePanes
Not removing directory, it is not empty: /Library/LaunchDaemons
Not removing directory, it is not empty: /Library/LaunchAgents
Removing directory /Library/Frameworks/CUDA.framework/Versions/A/_CodeSignature
Removing directory /Library/Frameworks/CUDA.framework/Versions/A/Resources
Removing directory /Library/Frameworks/CUDA.framework/Versions/A/Libraries
Removing directory /Library/Frameworks/CUDA.framework/Versions/A/Headers
Removing directory /Library/Frameworks/CUDA.framework/Versions/A
Removing directory /Library/Frameworks/CUDA.framework/Versions
Removing directory /Library/Frameworks/CUDA.framework
Not removing directory, it is not empty: /Library/Frameworks
Removing directory /Library/Extensions/CUDA.kext/Contents/_CodeSignature
Removing directory /Library/Extensions/CUDA.kext/Contents/Resources/English.lproj
Removing directory /Library/Extensions/CUDA.kext/Contents/Resources
Removing directory /Library/Extensions/CUDA.kext/Contents/MacOS
Removing directory /Library/Extensions/CUDA.kext/Contents
Removing directory /Library/Extensions/CUDA.kext
Not removing directory, it is not empty: /Library/Extensions
Not removing directory, it is not empty: /Library
Not removing directory, it is not empty: /.