Unable to delete repository

Unable to delete an unused repository or its product.

Foreman 1.24.2 used on all smart-proxies

When trying to remove from webUI, tasks just hangs and stays in a pending state with errors.

Running with 'hammer -v repository delete --id , I receive the below error message.

Could not delete the Repository:
Task 8a00bbe8-96fe-427f-a2ae-ce32cacb4393: Katello::Errors::CandlepinError: Content with ID “1581967213257” could not be found.

This repository doesn’t have any packages since I have never been able to get a successful sync. I’d like to completely remove and try to re-create and sync.

Any thoughts or suggestions are appreciated.

Thanks,
Cassius

Tasks just appears to hang until I destroy in the foreman-rake console.

A little more information from the task in the GUI.

Under Errors>Exceptions:
Katello::Errors::CandlepinError: Content with ID “1581967213257” could not be found.

I had a similar problem and iballou resolved this for me.

@poulterer thanks for the advice. This looks to have worked to delete the repo then I was able to delete the product. Not sure why I can’t seem to get the repo to successfully sync, but perhaps I’ll try again later.