Remove whole tree if no elements are left.