Entire shantytowns along the coast were washed away, leaving at least 50,000 residents homeless.