The use of insecticides is discouraged around food materials. Insecticides are supplementary to sanitation and proper storage.
The simplest and most effective measure is to locate the source of infestation and quickly get rid of it. Dispose of heavily infested foods in wrapped, heavy plastic bags or in sealed containers for garbage removal, or bury deep in the soil. If you detect an infestation early, disposal alone may solve the problem.
In case of large population of stored food beetles are found at food storage warehouse, we may need to use smoke generator to perform smoke fumigation.