<html><head></head><body><div>On fre, 2017-01-06 at 09:44 -0600, Dan Nicholson wrote:</div><blockquote type="cite"><div dir="ltr">Use "flatpak build-update-repo --prune" (or "ostree prune") on the repo. Look at the --prune-depth option. Beware that there potential issues if you do this while the repo is being updated since there's currently no locking for prune. However, if you can run this while there are no updates to the repo happening, you'll be safe. If you can't ensure that the repo won't be updated, a sufficiently deep depth will make the potential for removing a needed object pretty small.<br></div></blockquote><div><br></div><div>I don't think it is ever unsafe to delete old versions, or am I missing something? I mean, clearly you can't install the versions being deleted, or be in the process of downloading it. However, if you have an old version locally installed, removing it from the remote should be ok (i.e. keep working locally and still be able to pull the latest version).</div><div><br></div><div>That said, it probably makes sense to have a few versions around, in case of frequent updates while someone is doing an update on some very slow link.</div><div><br></div><div>ostree prune also has a by-age pruning option that flatpak build-update-repo doesn't, which may be useful.</div><div><br></div><div><span><pre><pre>-- <br></pre>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl@redhat.com            alexander.larsson@gmail.com 
He's a one-legged day-dreaming senator whom everyone believes is mad. 
She's a psychotic wisecracking lawyer with a knack for trouble. They 
fight crime! 
</pre></span></div></body></html>