To reproduce
set policy route-map FO rule 10 action 'deny' set protocols bgp 64501 neighbor 203.0.113.1 remote-as '65001' set protocols bgp 64501 route-map 'FO' commit
We have zebra config, out of protocol bgp.
! ip protocol bgp route-map FO ! line vty !
Delete protocols
vyos@r2-roll# delete protocols [edit] vyos@r2-roll# commit [edit]
Bgp route-map still present in the configuration
! ip protocol bgp route-map FO ! line vty !
Some time ago, it was a workaround for it.
https://github.com/vyos/vyos-1x/commit/9cb85e90574e31d09fc1ed4e1c774221d0f05f5d#diff-a6bfa81633be09b840b1a0e164572849a4b8df4c7523c2d9a1230e770e8705dd
It can be affected for all protocols.