The most effective way to deter wasps is to eliminate attractants like human and pet food, drinks, fallen fruits, compost piles and open garbage. For an established infestation, it may be necessary to use a commercial wasp spray, WD-40 or a hot, soapy water solution.
For indoor wasp infestations, it may be necessary to seal off access points. Some common entryways include torn screens, cracks around doors or windows and unsealed vents. Bright colors attract wasps, so they should be removed if possible.
Another way to get rid of wasps is to remove their nest. This should only be done at night or in cold temperatures, and it can be accomplished by sealing the nest in a plastic bag and then freezing it or leaving it out in the sun for a day.