you eliminate all guns. cop, civilian, millitary every single firearm of every size and speed of shot. if there are 0 guns on the planet there will be zero gun violence. but that means that sword violence goes up.
Hmm, anybody with a decent machine shop can build a gun. Actually, you could probably build a decent grenade launcher in your garage with a couple of basic machines...

