Assuming termites, they are very difficult to get rid of, the actual nest with the queen is probably underground and the damage is done by the workers collecting food.
Once you can see them you are in trouble.
The sprays kill the ones you can see, but there are millions that you can't see or get to.
I've had success with this stuff https://www.lazada.co.th/products/termi-eco-i4176962274-s16956768777.html? but it's not instant, it needs time for the workers to take it back to the nest.
Unfortunately, by the time the nest was eradicated, so was the chicken house.