The government has shelved plans to detain and punish illegal immigrants and is "advising them to go home" while considering a request from Indonesia to extend an amnesty, officials and reports said today.