How to delete RPMs permanently in Foreman

Problem: I have some RPMs that i need to remove them permanently from the foreman as they are taking up most of the space in /var/lib/pulp/. Just to be clear, i’ve tried removing the RPMs from a repo but couldn’t find a way to permanently delete them from the DB/Library.

Expected outcome: Delete a RPM permanently

Foreman and Proxy versions: 1.23

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

Hi,

I has been a while since I needed this, but from what I remember, the workflow goes something like:

  • Remove it/them from the repository
  • Publish and promote new Versions of all CVs/CCVs that contain the affected repo
  • Delete all old versions of said CVs/CCVs

That should remove them permanently. Just deleting them from the repository is not sufficient because CVs and CCVs will still need those packages. As long as an object is associated to any existing CV/CCV version, it can not be deleted completely.

Regards

Thank you @areyus!