That’s the question that Superman answered and kicked off the “Injustice” series. After the Joker killed millions of people, Superman had him publicly executed. From there he went about rounding up other villains and tossing them in prison, executing them, etc.