How to Uninstall Xcode on Mac: Reclaim Simulator Space Without Breaking the Command Line Tools
Remove Xcode in the right order: delete simulator runtimes inside Xcode, switch to the Command Line Tools, trash the app, then clear about 58 GB of leftovers.