An effective way to eradicate yellow jackets is to find the nest and kill them all using insecticides. Aerosol insecticide spray works for aboveground nests, while insecticide dust is ideal for belowground nests. Use insecticide during the day while the yellow jackets are away from the nest.
Once the nest has been removed and the yellow jackets killed, preventative measures should be taken around the building to avoid a return of the colony. Keep all garbage lids tightly closed, and hang yellow jacket traps in trees. Continue to use insecticide on a scheduled routine to help keep the pests from returning to the location.