Skip to content

Unclear docs in "Viewing and Deleting Historical Data" #188

Answered by ryan4yin
refaelsh asked this question in Q&A
Discussion options

You must be logged in to vote

If you're not using home-manager, then you can safely ignore this comment and the command.

The issue is that, sudo nix-collect-garbage --delete-old will only delete all the system-level's historical data, and sudo means your're running the command under root.

But the home-manager's historical data will remains on your system, so you should run nix-collect-garbage --delete-old without sudo, to clear all the data for your current user.

You need to run nix-collect-garbage --delete-old under all users with home-manager installed , that's why I said per user in the docs.
But Generally speaking, you will only have home-manager under your personal account, so you don't need to run this command m…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@refaelsh
Comment options

Answer selected by refaelsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants