Unregister RHEL 7 using Subscription Manager and Remove System Profile


Linux

Now you have registered your system using subscription manager but then you wish to unregister and remove system profile from Red Hat Satellite Network using subscription manager

 

Remove System profile

You can unregister your system using the subscription manager command line or WebGUI.

 

Unregister RHEL 7 using RH Subscription Manager WebGUI

The first step to remove system profile from RHN is login to your Red Hat Portal

Click on "Subscriptions" at the upper left. Then click on Systems under the Manage header.

How to unregister RHEL 7 using Subscription Manager and Remove System Profile

How to unregister RHEL 7 using Subscription Manager and Remove System Profile

 

Search for the system which you wish to remove system profile from Red Hat Network

How to unregister RHEL 7 using Subscription Manager and Remove System Profile

 

Click on the system and click on "Remove System"

How to unregister RHEL 7 using Subscription Manager and Remove System Profile

 

Confirm the deletion and removal of the system by clicking the "REMOVE" button.

How to unregister RHEL 7 using Subscription Manager and Remove System Profile

 

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

# subscription-manager clean

to clean useless subscription data.

 

Unregister RHEL 7 using RH Subscription Manager CLI

You can also remove system profile and unregister RHEL 7 from Red Hat Network using CLI version of subscription manager. Determine the serial number of the subscription you want to remove by listing information about already attached subscriptions:

rhel-7:~ # subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Enterprise Linux Server (1-2 sockets) (Unlimited guests) - Embedded Partner Support
Provides:            dotNET on RHEL (for RHEL Server)
                     Red Hat Beta
                     dotNET on RHEL Beta (for RHEL Server)
                     Red Hat CodeReady Linux Builder for x86_64
                     Red Hat Ansible Engine
                     Oracle Java (for RHEL Server)
                     Red Hat Enterprise Linux Server
                     Red Hat Enterprise Linux for x86_64
                     Red Hat Software Collections Beta (for RHEL Server)
SKU:                 RH012345
Contract:            123456788
Account:             123456
Serial:              123456789012345
Pool ID:             8a85f98d67a562bd0167c2880186288c
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       Premium
Service Type:        PSF
Status Details:      Subscription is current
Subscription Type:   Stackable
Starts:              12/10/2018
Ends:                12/10/2019
System Type:         Physical

Enter a command as follows to remove the selected subscription:

subscription-manager remove --serial=<serial_number>

Replace serial_number with the serial number you determined in the previous step.

To remove all subscriptions attached to the system, run the following command:

rhel-7:~ # subscription-manager remove --all
1 subscription removed at the server.
1 local certificate has been deleted.
rhel-7:~ # subscription-manager unregister
Unregistering from: subscription.rhsm.redhat.com:443/subscription
System has been unregistered.

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

# subscription-manager clean

to clean useless subscription data.

 

Lastly I hope the steps from the article to unregister RHEL 7 system from Red Hat Satellite Network and deleting system profile on Linux was helpful. So, let me know your suggestions and feedback using the comment section.

 

Deepak Prasad

Deepak Prasad

Deepak Prasad is the founder of GoLinuxCloud, bringing over a decade of expertise in Linux, Python, Go, Laravel, DevOps, Kubernetes, Git, Shell scripting, OpenShift, Networking, and Security. His extensive experience spans development, DevOps, networking, and security, ensuring robust and efficient solutions for diverse projects.

Certifications and Credentials:

  • Certified Kubernetes Application Developer (CKAD)
  • Go Developer Certification
  • Linux Foundation Certified System Administrator (LFCS)
  • Certified Ethical Hacker (CEH)
  • Python Institute PCAP (Certified Associate in Python Programming)
You can connect with him on his LinkedIn profile and join his Facebook and LinkedIn page.

Can't find what you're searching for? Let us assist you.

Enter your query below, and we'll provide instant results tailored to your needs.

If my articles on GoLinuxCloud has helped you, kindly consider buying me a coffee as a token of appreciation.

Buy GoLinuxCloud a Coffee

For any other feedbacks or questions you can send mail to admin@golinuxcloud.com

Thank You for your support!!

Leave a Comment