I tried filtering incoming communities on prefixes using the following route-map:
rule 1 { action permit description "Strip RPKI communities" set { comm-list { comm-list 5 delete } local-preference 700 } }
And the following community-list:
rule 1 { action permit regex 60927:404 }
The local-preference is just to see whether the route-map was actually being applied.
But after resetting the connection to the neighbor the community isn't actually being removed:
BGP routing table entry for 2001:5:8::/48 Paths: (2 available, best #1, table default) Not advertised to any peer 6939 200334 2a0b:b601::9 from 2a0b:b601::9 (185.167.204.236) Origin IGP, localpref 700, valid, internal, best Community: 60927:404 Last update: Thu Dec 20 15:56:37 2018
As you can see the local pref is being updated however