If clothing is left damp and undisturbed, there is a chance that flies will lay their eggs in it. Within a span of days or weeks, the eggs hatch and the clothing is filled with fly larvae, also known as maggots. While seeing the maggots is startling, there is no need to throw out the clothing. Instead, kill the maggots to ensure they will not mature to trouble your home as flies.
Gather up all the clothes in the area and place them in a plastic trash bag. Even if nearby clothing does not have larvae in them, there is the chance that they have eggs that will hatch.
Dump the bag into the washing machine.
Pour in an appropriate amount of laundry detergent for the load.
Close the machine and turn it on to a hot cycle. The heat from the hot water will kill the maggots.
Tie the plastic bag off and dispose of it, as there are likely maggots loose in it.
Dry the clothing as you would normally.