Years this Q is rounding in community' so let me clear topic here
1- device support route refresh
You can use
Clear ip bgp <> soft in
2- device not support route refresh' here you need to keep prefix in memory using
Neighbor <> soft-reconfig inbound
You can check this copy of prefix by using show ip bgp neighbors <> receive-route
And you can use
Clesr ip bgp <> soft in
Both above way not terminate bgp session between peers.
So you need for first step find if peer have route refresh capability or not
MHM