<div dir="ltr">Good idea. <div>I filed the docs story <a href="https://pulp.plan.io/issues/8842">https://pulp.plan.io/issues/8842</a> to track that.</div><div><br></div><div>Thanks,</div><div>Tanya</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 31, 2021 at 12:13 PM Quirin Pamp <<a href="mailto:pamp@atix.de">pamp@atix.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Perhaps there should be an "Orphan Cleanup" workflow section here: <a href="https://docs.pulpproject.org/pulpcore/workflows/index.html" rel="noreferrer" target="_blank">https://docs.pulpproject.org/pulpcore/workflows/index.html</a> ?<br>
It could also include information on the new "number of repo versions to retain" feature.<br>
<br>
Just a thought,<br>
Quirin (quba42)<br>
<br>
________________________________________<br>
From: <a href="mailto:pulp-list-bounces@redhat.com" target="_blank">pulp-list-bounces@redhat.com</a> <<a href="mailto:pulp-list-bounces@redhat.com" target="_blank">pulp-list-bounces@redhat.com</a>> on behalf of Grant Gainey <<a href="mailto:ggainey@redhat.com" target="_blank">ggainey@redhat.com</a>><br>
Sent: 24 May 2021 13:51<br>
To: <a href="mailto:xiao.zhang@windriver.com" target="_blank">xiao.zhang@windriver.com</a><br>
Cc: pulp-list<br>
Subject: Re: [Pulp-list] As a user, how to clear/clean contents in pulp?<br>
<br>
Hi Xiao!<br>
<br>
On Sun, May 23, 2021 at 10:06 PM Zhang, Xiao <<a href="mailto:xiao.zhang@windriver.com" target="_blank">xiao.zhang@windriver.com</a><mailto:<a href="mailto:xiao.zhang@windriver.com" target="_blank">xiao.zhang@windriver.com</a>>> wrote:<br>
Hi Experts,<br>
<br>
I just start to use pulp_deb with docker pulp/pulp.I wonder How to clean the pulp database and release disk space?<br>
<br>
I made several repositories, upload Deb packages, sycn remote repositories, while after I deleted all distributions, publications, remotes and repositories, there are still lots of content/packages. So how to remove all of them. Or, are there any methods to clear the whole environment and construct a pure new one(without any data/file)?<br>
<br>
Pulp deduplicates content, so a given artifact can be shared among an arbitrary number of repositories. This is why deleting the repos doesn't on its own remove the content.<br>
<br>
When a piece of content is no longer related-to any repositories, it's considered an 'orphan', and is available to be cleaned up. You can start the orphan-cleanup process with this API call:<br>
<br>
  http DELETE http://<your-pulp-maching-and-port>/pulp/api/v3/orphans/<br>
<br>
That starts a task that will remove all the unattached content.<br>
<br>
Great question, hope this answers it for you!<br>
Grant<br>
<br>
<br>
<br>
Thanks<br>
Xiao<br>
<br>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><mailto:<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a>><br>
<a href="https://listman.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://listman.redhat.com/mailman/listinfo/pulp-list</a><br>
<br>
<br>
<br>
--<br>
Grant Gainey<br>
Principal Software Engineer, Red Hat System Management Engineering<br>
<br>
<br>
<br>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://listman.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://listman.redhat.com/mailman/listinfo/pulp-list</a><br>
<br>
</blockquote></div>