Hi, there are different methods. Nematodes, BTI (bacteria), predatory mites, letting the soil dry more, sand or a cover layer, yellow sticky traps, H₂O₂, neem (some people find it questionable, I didn’t look into that)... and so on.
I’ve had the best results with combinations. It also depends if it’s indoor or outdoor. Important is to target larvae and adults, especially if you can’t fully wipe out (and prevent New inestation) one stage.
Indoor I always go a bit drier, do some defoliation, use sticky traps, nematodes and/or predatory mites. I also covered the soil before (
growdiaries.com/diaries/298618-grow-journal-by-trutratri), but depending on your medium and pot this could inhibit aeration.
I don’t use H₂O₂ or neem sprays anymore, if I cant use it in flower stage I need soomething else ?
For me bacteria (BTI) turned out most effective overall. Works indoor and you can also use it preventively when recycling soil. Also cheaper and I dont have to make a fitting environment like for nematodes and mites.