JAKARTA, Indonesia — Flash floods killed at least 43 people and left hundreds of thousands homeless in Jakarta, the Indonesian capital, the authorities said on Friday, after the city’s most intense period of rainfall since record keeping began more than 20 years ago.

On Tuesday, parts of the city recorded more than a foot of rain, according to the country’s Meteorology, Climatology and Geophysics Agency. The rain persisted on Wednesday and more was predicted this week for the metro area, one of Asia’s largest urban districts and home to more than 30 million people.