How to unregister/delete a system from cloud.redhat.com inventory?

Solution Verified - Updated -

Environment

  • cloud.redhat.com
  • Red Hat Satellite
  • Insights-client

Issue

  • How to unregister/delete a system registered to cloud.redhat.com inventory?

Resolution

There are multiple ways to unregister/delete a system profile from the Inventory

Procedure 1: Using insights-client command itself

# insights-client --unregister

Procedure 2: From Red Hat Satellite 6 UI

  • Login to Satellite webui
  • Navigate to Insights -> Inventory
  • Select system profiles which need to be unregistered
  • Click on Actions -> Unregister

Procedure 3: Using cloud.redhat.com UI

  • Login to cloud.redhat.com
  • Click on Cloud Management Services or Red Hat Insights
  • Click on Inventory
  • Locate the host to be removed and click on the vertical ellipse to the end of the row then click on Delete.
  • Follow any additional steps that are provided as prompted

Procedure 4: Using API call.

#for i in `curl -s -u uesrname:password https://cloud.redhat.com/api/inventory/v1/hosts?fqdn=SYSTEM_NAME | grep -o '"id":"[^"]*' | grep -o '[^"]*$'` ; do curl -u username:password -X DELETE https://cloud.redhat.com/api/inventory/v1/hosts/$i -H  "accept: */*" ; done

username:password - Red Hat access portal credentials 
SYSTEM_NAME - system's FQDN

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

5 Comments

Hi, from new Insights portal available at cloud.redhat.com is not anymore possible to select a system and unregister it.

Hi Michele, it is "in the works" ... the Remove/Unregister option will be available in the web interface soon. :)

Regards,
Christian

Works perfectly ... I removed non-existing hosts which I had unregistered before Insights moved to cloud.redhat.com by using the API method.

Thank you for the validation and feedback!

You're welcome, Kathryn ! :)