Delete Rolling update content view

Hello,

When I try to delete a roling update content view with hammer:

$> hammer content-view version delete --content-view-id 48

I’ve got this msg:

Could not delete the content view:
It’s not possible to destroy a version of a rolling content view.

How to really delete it now ?

Ths a lot

Hi @xybal

Which Foreman/Katello version do you run? I had success with hammer content-view delete --id _My_RCV_ID_.

Foreman 3.15.0
Katello 4.17.0

hammer content-view list

----------------|---------------------------|---------------------------|-----------|---------|---------------------|----------------------------------------------------------------

CONTENT VIEW ID NAME LABEL COMPOSITE ROLLING LAST PUBLISHED REPOSITORY IDS


48 | TEST | TEST | no | yes | 2025/06/18 08:02:43 | 2505, 2506, 2507, 2642, 2671

hammer content-view delete --id 48
Could not delete the content view:
Cannot delete ‘TEST’ due to associated environments: Library.

I followed this doc and now I can remove it.

=> Red Hat Customer Portal - Access to 24x7 support and knowledge

hammer organization list

1)List all your content view

hammer content-view version list

2)Remove it from the Library

hammer content-view remove-from-environment --id "CV ID" --lifecycle-environment Library --organization-id 3

3)Now you can delete the content view

hammer content-view delete --id "CV ID" --organization-id 3
1 Like