# How to remove old system generations?

**URL:** https://discourse.nixos.org/t/how-to-remove-old-system-generations/6648
**Category:** Help
**Created:** [April 10, 2020, 4:01pm UTC](https://discourse.nixos.org/t/how-to-remove-old-system-generations/6648 "2020-04-10T16:01:46Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ElvishJerricco](https://discourse.nixos.org/user_avatar/discourse.nixos.org/elvishjerricco/32/984_2.png) [@ElvishJerricco](https://discourse.nixos.org/u/ElvishJerricco)
#### Post date: [April 10, 2020, 11:41pm UTC](https://discourse.nixos.org/t/how-to-remove-old-system-generations/6648/2 "2020-04-10T23:41:13Z")

</div>

Strange. Run `nix-store --query --roots /nix/store/...` on any path to see what’s keeping it alive. They must be referred to by _some_ root or else the GC would have worked.

---

_[View the full topic](https://discourse.nixos.org/t/how-to-remove-old-system-generations/6648)._
