"empty nester" parents and lingering data
If a member has no parent then it's an orphan but if a parent member had children and they all get moved, the former parent is now...
Regardless of the term, this company loves to do big reorgs a couple times a year that leave whole branches of a hierarchy empty. It's put me in the weird situation of having to hunt down these obsolete (disowned?) parents and manually remove them because they're now base level members with data and consolidations don't clear them the way I expected.
From a technical viewpoint, I can see why this happens, as it's now just a base member that happens to have data and the consolidation doesn't particularly care *how* the data got there so it's not going to remove it. It's just... counterintuitive, unwanted, wrong, and generally annoying.
For the most part, they've just orphaned the offending ex-parents and ignored them, forever. The few they have deleted have been cleared via the rather laborious method of creating a new (empty) member under the obsolete parent, consolidating every scenario in every year, removing the child, then deleting the parent. This process is further complicated by the fact that in some scenarios these members are populated with durable calcs so I have to go out of my way to clear that data manually. In all, it can be a tremendous amount of work to remove one member and I can see why they've opted to just ignore the problem until now.
The question is, what approach can I use to find, clear, and (ideally) remove these obsolete members for all time?