Removing channel

1. Use case

This workflow shows how to manually remove SUSE provided channels from SUSE Manager and to clean up end-of-life products, to reclaim space or for other purposes.

2. Step-by-step instructions

Manual channel removal consists of Preparing to remove a channel and Removing channel.

2.1. Preparing to remove a channel

Before removing a channel, you must identify the label for the channel to be removed. It can be done with Web UI or on the command line.

  • Be careful not to remove channels that systems are currently subscribed to, or that you are planning on subscribing a system to.

  • If there are systems that are currently subscribed to a channel that you want to delete, do not remove the channel until those systems are upgraded or unsubscribed.

2.1.1. Identifying Channel labels

Procedure: Identifying channel labels using Web UI
  1. In the SUSE Manager Web UI, in the sidebar navigate to Software  Channel List  All.

  2. This page displays the Channel Name. If you select the link for a channel name, you will see the field for Channel Label.

  3. Identify the channel, and child channels, to be removed.

Procedure: Identifying channel labels using the command line
  1. You can get a list of channels by running the following command:

    spacewalk-remove-channel -l

2.1.2. Verify channel system subscriptions

Procedure: Verifying channel system subscriptions using Web UI
  1. In the SUSE Manager Web UI, in the sidebar navigate to Software  Channel List  All.

  2. Locate Systems column on the right.

  3. Check the Systems column for the channel, or any child channels, that you want to remove.

Procedure: Verify channel system subscriptions using the command line
  1. Run the following command:

    spacecmd -- softwarechannel_listsystems <Channel Label>

2.2. Removing channel

A channel, with its metadata, can be removed in the SUMA command line by using the spacewalk-remove-channel command. This command does not remove the packages themselves from the filesystem.

Removing packages from the filesystem is described in [cleaning-up-channel-packages].

2.2.1. Removing an individual channel

Procedure: Removing an individual channel using the command line
  1. To remove an individual channel run the following command:

spacewalk-remove-channel -c channel-label

+ . To remove multiple channels at the same time, use -c flag for each channel, followed by the channel-label. For example:

+

spacewalk-remove-channel -c channel-label1 -c channel-label2

2.2.2. Removing a parent and all its child channels

Listing 1. Procedure: Removing a parent and all its child channels . It is also possible to remove a parent channel with all of its child channels, like this:
spacewalk-remove-channel -a sles12-sp5-pool-x86_64

2.2.4. Clean the packages from the filesystem

Listing 2. Procedure: Clean the packages from the filesystem . The following command checks for anything that is still showing in the filesystem, but not in the SUMA database and then removes it.
# spacewalk-data-fsck -r -S -C -O

+

The final cleanup command can take several minutes, or even hours to complete.