Description of problem: The customer migrated the environment from puppet to Ansible, and they would like to remove all puppet classes using hammer or webconsole, but unfortunately hammer does not provide such functionality, but Satellite API can help here. Please check https://SATELLITE-FQDN/apidoc specifically DELETE /foreman_puppet/api/puppetclasses/:id Delete a Puppet class and related methods that could help you to remove puppet related stuff. Version-Release number of selected component (if applicable): Satellite 6.13 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: There is no a method in hammer or Web Console to remove the puppet classes, the only way is using the Satellite API. Expected results: Remove the puppet classes using hammer command or through the Web console Additional info:
On a side note, what do you mean by web console?
Hi, AFAIK we don't have an endpoint for such an action for any other resources, and we are not planning to add this kind of delete-all-resources endpoint. Why doesn't the CU list all the puppet classes (their ids) and then simply iterate over the list of ids, calling the API endpoint for deleting the resource?