Difference between pulp-admin orphan remove and katello:delete_orphaned_content

Problem:

Greetings All,

Hopefully this isn’t a silly question but I can’t seem to make sense of it. What is the difference between:

$ pulp-admin orphan remove

and

$ foreman-rake katello:delete_orphaned_content RAILS_ENV=production

From my understanding, they should do the same thing. However in my instance running foreman-rake katello:delete_orphaned_content does not seen to achieve anything, when I run pulp-admin orphan list reports around 10,000 packages.

I’m looking for the correct way to remove orphaned packages.

Expected outcome:

Orphaned packages are removed.

Foreman and Proxy versions:

Foreman 1.24 / Katello 1.14

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data: