Checkout coco for cannabis site.
I re-use coco. I strain the old coco to get rid of pith, recharge it with calmag, after a couple days, drain and drench with BTI (mosquito dunks with water). I let the BTI sit for a day and lastly run my nutes thru it. I no longer encounter gnats.
Happy holidays.