Many animals find food sources by their sense of smell. Some pet owners recommend lightly spraying vinegar on your trash cans to deter scavengers and food-seeking animals with sensitive noses. Spraying vinegar on the trash cans can mask the food odors that attract the animals.