Just run the following from a terminal:

sudo /Developer/Library/uninstall-devtools --mode=all

This is quite old, these days you should just be able to delete the Xcode app.