Once the hive beetle larvae have "slimed" the comb and honey, it is useless. It is amazing how fast the larvae tunnel and destroy the comb as they eat. You can take the frames out, lay it somewhere away from the remaining hive and let the bees rob any remaining honey if they want. You can then scrape off all old comb from the frames and start over. I had this happen once, after the beetle larvae infested the comb, the bees left. This was a strong hive that I moved from a top bar hive into a framed hive. The beetles can smell a distressed hive and can fly from quite a distance. The best defense for hive beetles is a strong hive, you can also buy beetle traps. I have also had hives robbed out, once it gets started it is almost impossible to stop it. I keep the entrances on my hives reduced to about 3 or 4 inches all year, and once the spring flow slows down I reduce them even more. I also put robber screens on all of my hives and plan to leave them on all year. This has worked so far this year.