0

When I list my current Guix garbage collection roots I find a root that I want to remove, the last one which belongs to a project I no longer develop.

$ guix gc --list-roots
/var/guix/profiles/per-user/rovanion/current-guix-30-link
/var/guix/profiles/per-user/rovanion/current-guix-30-link
/var/guix/profiles/per-user/rovanion/guix-profile-133-link
/var/guix/profiles/per-user/rovanion/guix-profile-133-link
/var/guix/profiles/per-user/rovanion/current-guix-30-link
/home/rovanion/source/python/a-project/.direnv/.guix-profile

Reading the manual page Invoking guix gc I find instructions on how to add additional roots but nothing on how to remove them.

2 Answers 2

0

just remove the path

rm /home/rovanion/source/python/a-project/.direnv/.guix-profile

after that, guix gc --list-roots should not show it anymore

and the next run of garbage collecting will remove the files

0

It seems like I also had to remove the root in

/var/guix/gcroots/auto/$hash

that corresponds to the symlink in

ls -l /home/rovanion/source/python/a-project/.direnv/.guix-profile
lrwxrwxrwx 1 rovanion users 36 Mar 24  2020 /home/rovanion/source/python/a-project/.direnv/.guix-profile -> /var/guix/gcroots/auto/$hash

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .