# Old Census Data

**URL:** <https://discourse.chef.io/t/old-census-data/19295>\
**Category:** Habitat Help\
**Created:** [December 12, 2019, 8:15pm UTC](https://discourse.chef.io/t/old-census-data/19295 "2019-12-12T20:15:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![username-is-already](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/username-is-already/32/2761_2.png) [@username-is-already](https://discourse.chef.io/u/username-is-already)\
**Post date:** [December 12, 2019, 8:15pm UTC](https://discourse.chef.io/t/old-census-data/19295/1 "2019-12-12T20:15:08Z")

</div>

Hi there

I noticed that when looking within the census data of my ring it contains old services that are not running any more, a few references to typos I created when loading services etc, how and when is that data removed?

Second thing I’ve noticed that when I load a svc it’s propagated quickly with the census (happy days) but the members (for that service) is still listed when I unload the service.

Is that by design? Or anyone know of a workaround I could do to update the census to remove the entries.

Thank you

Gary

---

<div class="post-metadata">

**Author:** ![joshb](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/joshb/32/2380_2.png) [@joshb](https://discourse.chef.io/u/joshb)\
**Post date:** [December 12, 2019, 10:02pm UTC](https://discourse.chef.io/t/old-census-data/19295/2 "2019-12-12T22:02:27Z")

</div>

Hi Gary,

Unfortunately, due to design decisions that were made at the very beginning of this project, that data is never removed. It _is_ by design, although given the hindsight we have now, it’s admittedly a sub-optimal design.

I spent quite a lot of time and energy this year attempting to fix this design decision by implementing a garbage collection mechanism of sorts for the rumor/census data. Ultimately, however, my PR was shelved indefinitely, as there was a lack of confidence in our ability to prove it wouldn’t break everything.

Low staffing resources and shifting priorities mean that it’s unlikely for that work to resurface in the near future. [Here is the PR](https://github.com/habitat-sh/habitat/pull/6709) if you’re interested in browsing the code or the lengthy discussion that went with it.

---

<div class="post-metadata">

**Author:** ![predominant](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/predominant/32/1151_2.png) [@predominant](https://discourse.chef.io/u/predominant)\
**Post date:** [December 13, 2019, 1:29am UTC](https://discourse.chef.io/t/old-census-data/19295/3 "2019-12-13T01:29:15Z")

</div>

Worse than old census data is the fact that I often see (in long-running rings) services being bound with stale and sometimes departed services.

---

<div class="post-metadata">

**Author:** ![Yauhen\_Artsiukhou](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/yauhen_artsiukhou/32/112_2.png) [@Yauhen\_Artsiukhou](https://discourse.chef.io/u/Yauhen_Artsiukhou)\
**Post date:** [December 13, 2019, 9:50am UTC](https://discourse.chef.io/t/old-census-data/19295/4 "2019-12-13T09:50:59Z")

</div>

Worth to mention that we cannot purge any data manually, for example I can’t delete uploaded files: [https://github.com/habitat-sh/habitat/issues/6930](https://github.com/habitat-sh/habitat/issues/6930)

I think at least manual cleanup should be available for an user as workaround in such cases

---

<div class="post-metadata">

**Author:** ![joshb](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/joshb/32/2380_2.png) [@joshb](https://discourse.chef.io/u/joshb)\
**Post date:** [December 13, 2019, 5:47pm UTC](https://discourse.chef.io/t/old-census-data/19295/5 "2019-12-13T17:47:41Z")

</div>

There’s a nuclear option of sorts if you really want to clean things out and start over. This is not something we support or recommend, but if you `rm -fr /hab/sup` on every node in your network, they will all start over from scratch.

Keep in mind that doing this means you lose _everything_. Member IDs will change, config will be lost, nodes will rediscover themselves, etc. This is the “everything is hosed and starting over from zero is better than nothing” option.

And yes, the team is painfully aware of the fact that this isn’t a good user experience. We’d love to make some improvements in this area.
