A few days after pledging to shut down migrant detention centers following a suicide at one such facility in Amygdaleza, northwest of Athens, government officials said on Tuesday that undocumented immigrants would no longer be detained for more than 18 months.