A court in New Delhi on Thursday refused to take cognisance of a chargesheet filed against Aam Aadmi Party MLA Amanatullah Khan in a money laundering case related to alleged irregularities in the Delhi Waqf Board and ordered his 'immediate release', saying his further incarceration in the matter would be 'illegal'.