Muerto el perro, se acabó la rabia.
“Once the dog is dead, the rabies is over.”
Removing the root cause of a problem ends the trouble it was causing.
— Traditional Chile Wisdom, Chile
Source: Traditional Chilean proverb, public-domain oral tradition (pan-Hispanic refrán)