Authorities in Libya have released refugees and migrants from the detention centre that was bombed in Tajoura, near Tripoli, last week.
UNHCR says more than 50 people died in the attack that was blamed on an air strike by forces loyal to a warlord, General Khalifa Haftar.
Gen Haftar’s forces have however accused the government side of shelling the centre.
Most of the dead are believed to be sub-Saharan Africans who were attempting to reach Europe from Libya.
In a statement, UNHCR in Libya says the authorities have allowed the refugees and migrants to be relocated.
In all more than 310 people will be moved.
The agency has also identified 55 of the “most vulnerable refugees” who will be taken to what it calls a departure facility before they are transferred to a third country.