Mazgothanswered grow question 2y ago I dont think that its a big of a deal because if you put a lot of sugar in there those flies are normal you just overdid it with the sugar, in this case you don't add that much nutrients that have a lot of sugar and carbs.
But lets give it a try and lets say that is a bug.You will make a homemade bottle spray that you can use it in the future again and again.
We start and chop 1,2 cloves of garlic, 1 whole chopped red onion, half a tablespoon cayenne pepper(if you dont have you can skip it its not necessary but it helps) you fill with water and put them in the fridge you leave them in for 12 hours and then you spray everything except the flowers(take of the ladies and spray everywhere,we need to spray everything to kill everything) but if it gets a little liquid on the flowers don't be afraid, it's organic.You can spray every 5/7 days.
keep the spray bottle in the fridge, I would say don't keep it for more than a week, it's easy to make a new one