[Pulp-list] As a user, how to clear/clean contents in pulp?

Tanya Tereshchenko ttereshc at redhat.com
Mon May 31 13:25:36 UTC 2021


Good idea.
I filed the docs story https://pulp.plan.io/issues/8842 to track that.

Thanks,
Tanya

On Mon, May 31, 2021 at 12:13 PM Quirin Pamp <pamp at atix.de> wrote:

> Perhaps there should be an "Orphan Cleanup" workflow section here:
> https://docs.pulpproject.org/pulpcore/workflows/index.html ?
> It could also include information on the new "number of repo versions to
> retain" feature.
>
> Just a thought,
> Quirin (quba42)
>
> ________________________________________
> From: pulp-list-bounces at redhat.com <pulp-list-bounces at redhat.com> on
> behalf of Grant Gainey <ggainey at redhat.com>
> Sent: 24 May 2021 13:51
> To: xiao.zhang at windriver.com
> Cc: pulp-list
> Subject: Re: [Pulp-list] As a user, how to clear/clean contents in pulp?
>
> Hi Xiao!
>
> On Sun, May 23, 2021 at 10:06 PM Zhang, Xiao <xiao.zhang at windriver.com
> <mailto:xiao.zhang at windriver.com>> wrote:
> Hi Experts,
>
> I just start to use pulp_deb with docker pulp/pulp.I wonder How to clean
> the pulp database and release disk space?
>
> 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)?
>
> 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.
>
> 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:
>
>   http DELETE http://<your-pulp-maching-and-port>/pulp/api/v3/orphans/
>
> That starts a task that will remove all the unattached content.
>
> Great question, hope this answers it for you!
> Grant
>
>
>
> Thanks
> Xiao
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com<mailto:Pulp-list at redhat.com>
> https://listman.redhat.com/mailman/listinfo/pulp-list
>
>
>
> --
> Grant Gainey
> Principal Software Engineer, Red Hat System Management Engineering
>
>
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://listman.redhat.com/mailman/listinfo/pulp-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20210531/f5de7d6c/attachment.htm>


More information about the Pulp-list mailing list