When bears become too aggressive, they often have to be killed. The only way to stop this devastating cycle is to make sure that all food and trash are stored properly. Most of these incidents were caused by improper food storage. If your car will be parked in Yosemite after dark, it must not contain any food or related items. Bears have damaged cars for as little as a stick of gum or an empty soda can, so thoroughly search you car and remove all potential bear attractants.
Bears recognize ice chests, grocery bags, and other food-related supplies.
Such items, even when empty, have residual odors. Remove them from vehicles and store them securely. Also remove drinks, garbage, and scented articles such as soap, sunscreen, and toothpaste from vehicles. Clear your car's interior of clutter. This will reduce the chances of a bear mistaking an article for food, and increase the chances that you will find any stray french fries or other overlooked food.