Subject: Re: bug#33274: [wishlist] Removing old system generation via guix system remove-generation

From: Leo Famulari <[email-masked]>
Date: Mon, 5 Nov 2018 15:37:22 -0500

On Mon, Nov 05, 2018 at 01:02:13PM +0100, swedebugia wrote:
> Hi
> 
> I would like to make a patch for this if somebody is willing to mentor me.
> 
> The idea is
> 
>  * removing symlinks-procedure
>  * argument to remove x old generations.
>      o ex guix system remove-generation --keep-2
>        this would remove all system generations besides the latest 2.
>  * warning if user tries to remove so that less than 2 genererations
>    resides
>  * hinting to run guix gc

This is a longstanding missing feature. A patch was discussed a while
ago:

https://lists.gnu.org/archive/html/guix-devel/2017-03/msg00194.html