The best method to control would be removing any uneaten food, and keep them away from your container. I use filtered container to avoid their entrance, and always remove uneaten food, including beetle jellies, bananas, or live insects as soon as my beetles stop feeding on them.