Looking for an approach to purge all NVIDIA components

Hello,
I’ve installed NVIDIA drivers, CUDA, cuDNN.
Due to version incompatibility my Ubuntu laptop is experiencing problems.
How to purge whole this staff, i.e. drivers, CUDA, cuDNN.
Different methods that I found on different forums and that I tried did not solve the problem.
Help, please.