how to uninstall unnecessary simulators in Xcode?

You can find and delete the simulators from the path /Library/Developer/CoreSimulator/Profiles/Runtimes. Restart Xcode in order to take effect.

or

You can delete a simulator from Xcode by navigation through Menu > Window > Devices > Simulators.