Almost all of the tens of thousands of migrants who entered Spain's enclave of Ceuta in North Africa had left by Saturday, officials said, as some EU countries bolstered their border controls over the sudden influx.