remove empty environments on destroy