HONG KONG — Officials in Taiwan said on Friday that workers had found the body of the last person still listed as missing after the collapse of a 17-story building in an earthquake on Feb. 6.

The discovery brings the death toll from the earthquake to 117, all but two of whom perished in the collapse of the Wei-Guan Golden Dragon apartment complex in the southwestern city of Tainan.

Ellen Hsueh, a city official, said a digging team had excavated on Thursday the body of a homeless woman, Lin Han-fei, who appeared to have been sleeping next to a column of the building when the 6.4-magnitude quake struck before dawn. The steel and concrete building came down with such force that Ms. Lin’s body was found more than eight feet below the surface, Ms. Hsueh said.

Rescue efforts at the site had been declared at an end on Saturday, with officials saying that everyone who had been inside the building at the time of the quake had been accounted for. But Tainan’s mayor, Lai Ching-te, later ordered a special excavation effort to find Ms. Lin, after police officers said that she often slept next to a particular column of the building and closed-circuit television footage indicated she might have been there the night of the quake.