There are 2 ways to kill carpenter ants. 1. Directly application to the nest using a pesticide spray, dust or foam. If you don't where the nest is then --- 2. Use a baiting system. The KM Ant Pro Liquid Ant System utilizes liquid bait dispensers to feed ants 24/7. This kills the workers as they forage for food. Baiting is a long term approach, but as it kills the worker ants, they colony slowly starves and declines.
Here is an article on the KM Ant Pro System and Carpenter Ants - https://www.epestcontrol.com/articles...
Hope this helps.