Ho to delete pulp rpm content

Problem:
I have some rpm packages in pulp which are not part of any repository. How can I delete them with cli or API? I didn’t find such option in REST API docu. I thought that “pulp orphan cleanup” will do it but it doesn’t. Any ideas?

Expected outcome:
Remove pulp rpm content

Pulpcore version:
“3.20.0”
Pulp plugins installed and their versions:
{
“component”: “rpm”,
“version”: “3.17.12”,
“package”: “pulp-rpm”
},
{
“component”: “file”,
“version”: “1.11.1”,
“package”: “pulp-file”
}

Operating system - distribution and version:
Red Hat Enterprise Linux Server release 7.9 (Maipo)

Other relevant data:

If content is an orphan it will not be considered for removal for 24 hours( by default). When running orphan clean up task try setting orphan_protection_time to 0. Otherwise ensure that content is indeed orphan - for example if it still present in some repo version it will not be removed unless that version is deleted first.

2 Likes

Worked like a charm! Thanks!

1 Like

Can you mark the post as a solution please? Seems like only the original poster can.

How to do it?

I thought we had the solved [0] plugin installed. I’m not so sure anymore. Do you see a “solution” button next to the “heart” symbol?

[0]Solved | Discourse - Civilized Discussion

Nope

I made a request here: