Directing the Uttar Pradesh government to file a detailed affidavit within three days on the plea by Jamiat Ulama-i-Hind against the recent demolitions in the state, the Supreme Court on Thursday observed that demolitions have to be in accordance with the due process of law.