[Katello] Can't Delete Package "NoMethodError: undefined method `repository_href' for nil:NilClass"

Hi @cintrix84,

I can execute against one of my broken repos but my issue is slightly different and I have opened another support issue ([Katello] 3.16.1.2 “NoMethodError: undefined method `repository_href’ for nil:NilClass” when syncing yum repos) so as not to hijack @fresh-pie’s thread. However, I’d be glad to assist with troubleshooting on this issue.

foreman-rake console

Loading production environment (Rails 6.0.3.1)
irb(main):001:0> Katello::Repository.find(28).version_href
=> “/pulp/api/v3/repositories/rpm/rpm/0676d8d3-6782-4bfe-9a07-865a4048e13e/versions/1/”