Recover hard disk space on your Mac by removing unused Xcode Simulator

If you’re Xcode user, especially if you’ve been running Xcode for few years, you might have outdated versions of iOS Simulator sitting on your precious hard disk doing nothing. Open up the Terminal app and enter the following command to remove those unused Simulator.

xcrun simctl delete unavailable

You can easily recover 2 to 8 GB of hard disk space, depending on how many Xcode Simulator you’ve installed in the past.