BEIJING – The Chinese megacity of Chengdu has allowed most residents to leave their homes from noon Thursday, largely dismantling a two-week lockdown as Covid-19 cases decline.

After easing restrictions in some parts of the city over the past week, the lockdown will now be lifted for residents in the seven remaining districts, the municipal government said late Wednesday.

People who have a negative Covid-19 test in the previous 24 hours will be allowed to return to work, while transport hubs and supermarkets will reopen.

Dine-in services at restaurants will also resume, but indoor entertainment venues and schools will stay closed.

The city of 21 million people, which was mostly locked down at the beginning of the month, recorded just 29 new cases for Wednesday, including seven previously reported asymptomatic cases.

Infections have held around or below 50 for four days in a row – compared with a peak of 200 at the end of August.

City authorities declared a preliminary victory in controlling the outbreak, but warned there is still a risk of sporadic cases given the high transmissibility of the omicron variant.

Indeed, some neighbourhoods where cases have been found will remain in lockdown and undergo another round of mass testing Thursday, the government said.

The lockdown in Chengdu was brief compared to Shanghai’s punishing two-month shutdown earlier this year, showing the advantage of moving swiftly and decisively to stamp out flare-ups.

Controlling the outbreak could be seen as a win for China’s strict Covid Zero policy, especially ahead of a crucial twice-a-decade political meeting in October when President Xi Jinping is expected to get a precedent-breaking third term in power.

Nationwide, 949 cases were reported Wednesday, the fourth day in a row the number has held below 1,000, having fallen steadily from the most recent peak of 3,424 on Aug 17.

Beijing, which has seen flareups in a number of colleges and a high school in recent days, recorded just two cases, both of whom were already in quarantine.