I bought some stuff in a black can from home depot that is marked for bees and termites. There is an attached hose and it comes out as a thin foam. You push it hard against the holes and put some foam in them. It killed all the bees over the next couple of days. I didn't know so many bees were out there till they started showing up dead on the patio. I haven't seen a carpenter bee in weeks.