The Supreme Court has sought an affidavit from the Uttar Pradesh government on the demolitions carried out by it using bulldozers.