To eliminate something that is unwanted means to completely remove it.
Wearing a seatbelt eliminates some of the dangers of driving a car.
Example picture