Section 277(2) in Jammu and Kashmir Municipal Corporation Act, 2000
(2)If any of the persons upon whom a notice has been served under subsection (1), appears in pursuance thereof before the Commissioner and gives an undertaking to him that such person shall, within a period specified by the Commissioner, execute such works of improvement in relation to the building as will, in the opinion of the Commissioner, render the building fit for human habitation or an undertaking that the building shall not be used for human habitation until the Commissioner on being satisfied that it has been rendered fit for that purpose, cancel the undertaking the Commissioner shall not make an order of demolition of the building.