Update map and remove old file