Privileged EXEC mode
If the interface parameter is not specified, spanning-tree detected protocols are cleared for all interfaces.
To clear detected protocols on all interfaces:
device# clear spanning-tree detected-protocols
To clear detected protocols on an Ethernet interface:
device# clear spanning-tree detected-protocols interface ethernet 0/1
To clear detected protocols on port-channel 23:
device# clear spanning-tree detected-protocols interface port-channel 23