How to uninstall cuda Ubuntu 11.04

Sorry to bring a topic that may already be answered, but I could not find it. I have a Quadro FX 1500 and installed in my ubuntu 11.04. Obviously it didn’t work, but now I can’t find how to remove cuda from my computer. How do I uninstall cuda?

Just delete the entire directory to which cuda toolkit is installed.

I f I delete the directory some path remain being used by other programs. If I try to install beagle-lib for example, it still tries to use cuda.