24 hours to file petition: What happens when US asks an 'illegal immigrant' to leave?

24 hours to file petition: What happens when US asks an 'illegal immigrant' to leave?