To delete a group, the neighbor configurations must first be shut down. After each neighbor shuts down, you must shut down the group before issuing the no group namecommand.
Use the following syntax to shut down a peer and neighbor and then delete a group.
config>router# bgp
no group name
shutdown
no neighbor ip-address
shutdown
shutdown
config>router# bgp
config>router>bgp# group headquarters1
config>router>bgp>group# neighbor 10.0.0.105
config>router>bgp>group>neighbor# shutdown
config>router>bgp>group>neighbor# exit
config>router>bgp>group# neighbor 10.0.0.103
config>router>bgp>group# shutdown
config>router>bgp>group# exit
config>router>bgp# no headquarters1
Trying to delete the group without shutting it down results in the following message:
ALA-B>config>router>bgp# no group headquarters1
MINOR: CLI BGP Peer Group should be shutdown before deleted. BGP Peer Group not
deleted.