To get rid of the pests, you need to follow some basic guidelines. No chemical should be used directly around food. The recommended procedure is to remove all foods from the area to be treated. Examine all foods destroying all infested foods. Vacuum the shelves and wash with soap and water.
Spray shelves lightly, particularly cracks where shelves and the wall come together.
If a sprayer is not available, use a paintbrush to apply the insecticide. This treatment process is the most effective. After the spray has dried, cover with clean, untreated shelf paper before replacing food and dishes. Here are some alternatives provided in the Guide to Hazardous Products Around the Home by the Household Hazardous Waste Project. Or mix 1 cup flour and 2 cups borax in a quart jar.