Uninstall Everything

Is there a way to uninstall everything on my mac? I am using the terminal. Uninstall Node, npm, cordova? I am new and having issues, and would like to just start over. Thanks!

Once you do get it sorted out, I highly recommend installing nvm, at which point all of that stuff will be nicely corralled in ~/.nvm.