This post will help you in removing all the rpm packages from the particular channel and then deleting permanently from /var/satellite filesystem.
1. SSH into Spacewalk server as a root user.
2. Run below command to get Spacewalk CLI:
# spacecmd
3. List all the available channels:
spacecmd {SSM:0}> softwarechannel_list
4. Remove all the packages from the channel:
spacecmd {SSM:0}> softwarechannel_removepackages [CHANNEL LABEL] *
5. Delete all the orphaned packages:
spacecmd {SSM:0}> package_removeorphans
6. Finally, run below command to delete packages permanently from /var/satellite filesystem. You can check the progress of this command under the log file /var/log/rhn/spacewalk-data-fsck.log.
# nohup spacewalk-data-fsck -f -r &
Note: Steps 4 to 6 may take longtime, depending on the number of packages getting deleted. We highly recommend to make sure always there is a sufficient free space (atleast 20%) available under /var/satellite.