delete environment after loading complete