Uninstalling pytorch is stuck in spyder IDE

Hello all,
I have installed anaconda and by launching Spyder through navigator, I install torch in it.
I guess things are installed properly until, I find that the command

torch.cuda.is_available()

is throwing “False”.

Then I realized may be I did not choose the cuda version while installing, so now trying to uninstall it.
But then after inputting command

pip uninstall torch

It gets so long and basically stuck in processing.
Any solution?

Run the commands in your terminal if they are stuck in Spyder (unsure how and where you are executing these commands there).