How to delete System Profiles for those registered with Red Hat Subscription Management (RHSM)?

Solution Verified - Updated -

Environment

  • Red Hat Customer Portal
  • Certificate Based Subscription
  • Red Hat Subscription Management (RHSM)
  • Red Hat Enterprise Linux

Issue

  • How to delete System Profiles from Red Hat Subscription Management (RHSM)?
  • How to delete System Profiles managed by subscription-manager or RHSM?

Resolution

Via WebUI

  • Delete system profile on Customer Portal
    1. Log in to the Red Hat Customer Portal.
    2. Click on Subscriptions at the upper left. Then click on Systems under the Manage header.
    3. Check the box to the left of the system to be deleted from the service.
    4. Click the Delete Selected box in the bottom left side of the page.
    5. Confirm the deletion and removal of the system by clicking the Delete Selected button.

  • After the deletion, please also execute this command in the system:

    # subscription-manager clean
    

    to clean useless subscription data.

Via Command Line

  • Delete system profile locally

    # subscription-manager remove --all
    # subscription-manager unregister
    # subscription-manager clean
    

More information on documentation:
* Red Hat Subscription Management documentation
* includes: Using and Configuring Red Hat Subscription Manager

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

Komal S pointed me at https://access.redhat.com/site/solutions/228883 and https://access.redhat.com/site/solutions/59258. Unfortunately, the drop-down menu on the "Subscription" tab does not have a "Certificate-Based Management" option, but I had better luck with the command line approach. This case can now be closed, thanks.

Glyn,
Thanks for binging this point up. We have edited the solution now.

This is not working... after running the following: # subscription-manager remove --all

subscription-manager unregister subscription-manager clean

The host object is still exists in the Satellite DB (can be found from the WEB-UI)

If you're trying to remove the system from your profile altogether, this may be what you need:

# subscription-manager unsubscribe --all
# subscription-manager unregister
# subscription-manager clean

First of all, I don't want to remove the entire system from subscription manager. I only want to remove one specific subscription: Satellite. Second, your "Verified Solution" says: 4. Click the Delete Selected box in the bottom left side of the page. There is NO "Delete Selected" box at the bottom left side of the page. I have tried in Firefox and Internet Exploder.