A closed jar is not a safe jar if floodwater touched the lid. Treat the question as exposure first, package type second. Do not taste food to check it. If you cannot tell whether a package was contacted by floodwater, set it aside as suspect rather than putting it back with clean supplies.

Sort without carrying the contamination into the clean pantry

Wait until local officials say the area is safe to enter. Keep children and pets away from exposed items and do not bring them to a clean kitchen counter for inspection. Use an untouched staging area for pantry goods you can verify stayed dry and had no contact. For example, the top shelf above a clear flood line may have untouched items, but check whether wet cardboard, leakage from a package above, or a contaminated person or object contacted them. When you cannot establish that, do not eat them.

Throw out packages that are not floodproof

FDA directs households to discard food or drinks in exposed packages with screw caps, snap lids, crimped caps, twist caps or flip tops. That includes a jar of peanut butter with a tightly screwed lid and a bottle of water that still has its factory seal. Discard exposed home-canned food and food in cardboard, paper, or similar packaging that cannot be cleaned and sanitized. An intact-looking inner layer is not a reason to assume a wet pantry box is safe. Discard swollen, leaking, punctured or otherwise damaged cans.

For example, if floodwater reached the bottom shelf holding a screw-top jam jar, a cereal box, sealed bottled water and a badly dented can, all four are discards. Do not open a damaged can to see whether the contents look normal. Handle disposal according to local cleanup directions, and do not donate contaminated items.

Do not confuse the narrow exception with permission to wipe things down

FDA describes an exception for undamaged commercial foods in all-metal cans or certain shelf-stable retort pouches if they go through the agency's full cleaning and sanitation procedure. That is not a blanket rule for cans, plastic pouches or supermarket cartons. If you are not sure what type of package it is, cannot confirm that it is undamaged, or cannot meet the official procedure with suitable supplies and safe water, discarding is the practical choice.

Record the loss and restart on a clean shelf

If useful for your cleanup records, photograph exposed items before discarding them, when doing so does not delay safe cleanup. Write down the quantity and type rather than retaining the food for proof. Do not restock a shelf or pick up clean food with tools that were just used to sort damaged supplies. Follow local cleanup instructions and build back a small set of shelf-stable food you actually use.

Sources & further reading