How to remove this warning "This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."

I get the following error when i am listing the updates.Server is currently registered with ULN. Although its a warning, i do not want the below message displayed when i am issuing yum command.i found out subscription-manager plugin is loaded. How to disable subscription-manager plugin??

Loaded plugins: downloadonly, product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

There are two possible solutions:

  1. in the plugin configuration file, disable plugin:
    vim /etc/yum/pluginconf.d/subscription-manager.conf
    
    enabled=0
  1. Register to the satellite

At least in my case, RHEL 7.6, /etc/yum/pluginconf.d/subscription-manager.conf already had enabled=0.

/etc/yum/pluginconf.d/enabled_repos_upload.conf however, had enabled=1, and changing that to enabled=0 prevented the warning.