I use a pets at home cage spray about every 4 to 6 months in the hamster cage after having some little bug issues with one of my previous hamsters. I checked literature papers, and it can potentially cause some harm to cats, but not other animals, so I wouldn't use if you have cats. You need to clean the whole cage, move hammy to another room. Spray cage, air out cage and room so no odour, and then assemble the cage after that. The spray disrupts an enzyme in larvae that prevents the larvae's ability to form a hard shell, so it can't become a proper bug, and instead dries out. All hammies that have had it in their cages have reached ripe old ages well into 2 years.
I also freeze any food before putting it in the cage, and bake wood items.
https://www.petsathome.com/shop/en/p...B&gclsrc=aw.ds