In Xcode 26, Go to "Settings" -> "Components". Find the platform you want to delete, click on the "i" icon, click on "Delete..."