It depends. If you have a final order of removal, the U.S. government has a right to remove you. Immigration and Customs Enforcement (ICE) has to coordinate your deportation with your home country. You could be deported in a matter of days, weeks, months or even years. In some cases, ICE cannot deport you because your home county is not approving ICE’s deportation request.
If you were never in removal proceedings and was served with a Notice to Appear (NTA), for the first time, the court has to find you removable before you can be deported. You can also consent to removal by electing voluntary departure, if you want to leave the U.S. on your own. You will be given either 60 or 120 days to leave.