completely removing xcode 11.2.1 - replacing with compiler/linker from homebrew?

Hi folks, in another thread I reported an odd linker error that I am receiving with Xcode 11.2.1. Some similar errors reported online suggests this is a problem that can be rectified by completely deleting Xcode and installing fresh. As far as I know, I only have the developer tools installed. Can someone tell me the complete steps for complete removal of Xcode 11.2.1?


Then I would like to either reinstall Xcode or replace the Xcode developer tools with replacements from homebrew - is that possible?