How to Remove and Reinstall Xcode

Remove Xcode

$ sudo rm -rf $(xcode-select -print-path)

Reinstall Xcode

$ xcode-select –install