Safe to delete old CUDA folder?

We’re using cuda-10.2 in our app and I would like to delete what looks like an old cuda directory on my AGX to save some room.

In /usr/local there is a folder to cuda-10.2, a Cuda shortcut and a Cuda-10 shortcut.

The cuda shortcut points to cuda-10.2 so I will leave that.

The Cuda-10 shortcut points to /etc/alternatives/cuda-10

I would have thought I can just delete this folder. However, clicking on the version.txt file in Cuda-10, it says “CUDA Version 10.2.300”…

So, maybe it is needed for the main Cuda-10.2 folder? I dont want to delete it and then have to mess around with re-installing everything again

I am pretty sure in the end they are all symlinked to the same /usr/local/cuda-10.2

nvidia@m12:/usr/local$ ls -ld /etc/alternatives/cuda*
lrwxrwxrwx 1 root root 20 May 28 04:44 /etc/alternatives/cuda -> /usr/local/cuda-10.2
lrwxrwxrwx 1 root root 20 May 28 04:44 /etc/alternatives/cuda-10 -> /usr/local/cuda-10.2
nvidia@m12:/usr/local$ ls -ld cuda*
lrwxrwxrwx  1 root root   22 May 28 04:44 cuda -> /etc/alternatives/cuda
lrwxrwxrwx  1 root root   25 May 28 04:44 cuda-10 -> /etc/alternatives/cuda-10
drwxr-xr-x 12 root root 4096 May 28 04:43 cuda-10.2

so probably do not delete?

Hi ,
If you are not using it , then you may delete it.
However it would be best to rename it first and confirm everything is working for a bit of time.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.