<div dir="ltr"><div dir="ltr">Hi Xiao!</div><div dir="ltr"><br></div><div dir="ltr">On Sun, May 23, 2021 at 10:06 PM Zhang, Xiao <<a href="mailto:xiao.zhang@windriver.com">xiao.zhang@windriver.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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></blockquote><div><br></div><div>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.</div><div><br></div><div>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:</div><div><br></div><div>  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.</div><div><br></div><div>Great question, hope this answers it for you!</div><div>Grant</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<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><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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Grant Gainey</div><div>Principal Software Engineer, Red Hat System Management Engineering</div></div></div></div></div></div>