Resolution
There is no configuration option to clear port channel configuration in CatOS.
As a workaround, complete these steps in order to clear the unused port channel configs:
- Use the copy config tftp command in order to backup the configurations to the tftp server.
- Copy the running-config to a plain text editor, then remove the unnecessary command lines.
- Use the clear config all command in order to clear the startup-config from the switch.
- Copy the newly edited/cleared config into the CLI session.
Alternatively, you can use the set port channel [mod/port] mode off command in order to disable an EtherChannel.
Refer to the Disabling an Etherchannel section of Configuring Etherchannel for more information.