The unoccupied four-storeyed structure had started leaning around 3 AM and rested dangerously on the nearby building, whose occupants were sleeping at the time of the incident, officials said.
The locals tried to help out the people trapped within the building and informed the Fire Service and police.
"We got a call about a collapsing building around 3.30 AM. We rescued fiver persons and no one was injured," said a senior police officer.
The North Delhi Municipal Corporation (NDMC) officials said the debris of the tilted structure was being removed and a contractor was engaged to dismantle it.