How long do flying beetles live?
Also asked, what attracts beetles in your house?
During periods of drought, it's common for beetles to migrate to water sources inside your home. Roof leaks, plumbing problems and excess humidity provide beetles with the moisture they need to survive. In the case of wood-destroying beetles, wood with high moisture content provides a food source for beetle larvae.
Keeping this in view, how do I get rid of flying beetles?
Fill a quart jar halfway with water and add a squirt of dish soap to the jar. Hold the jar under the branches of any plants or bushes the beetles are resting on and tap the branches. Many of the beetles will fall into the jar, and the dish soap will trap and smother the beetles.
Beetles lift their elytra out of the way in order to fly. A few species of true bugs have a similar arrangement. Not all beetles can fly. Some beetles do not have back wings, and some cannot lift their front wings out of the way.