The first step to uninstalling Xcode from your Mac (and deleting its residual files) is to move the app itself to the macOS Bin . Launch Finder and click Applications on the right sidebar. Right-click on the Xcode icon and select Move to Bin on the context menu. That will immediately uninstall Xcode from your Mac.