Revocation of detention