Pump the water from the flooded area with a pool water pump, garbage pump or wet/dry vacuum. Remove as much water as possible from the area.
Open the windows and plug in a circular fan. Turn on the fan to get the air circulating in the room. Only plug in electrical devices once you've had the electrical system in the home inspected for damage.
Pull up any carpet from the floor by lifting at a corner. Remove the padding underneath by pulling up the staples with a pair of pliers. Discard the padding.
Lay the carpet on an outside clothesline to air dry it.
Spray the carpet with a carpet disinfectant and allow it to sit for the time recommended by the cleanser's manufacturer. Discard any carpet or rugs that were under water for more than 24 hours.
Clean exposed flooring with a bucket full of one part bleach to 16 parts water using a mop. Keep another bucket of clean water to rinse the mop head. Discard the mop head after clean up.
Wipe down the walls with a sponge dipped in diluted bleach to remove any fungal spores. Dry all surfaces with towels.