How to remove obsolete /etc/map entries on Publish?
I have a package that install the etc map entries on my Publishers.
I currently have some mapping configs there that are obsolete, but must be removed because they break the new correct mapping.
all my mappings are located underneath /etc/map.example
The rule in the filter.xml is
<filter root="/etc/map.example" mode="replace"/>
so I would expect the whole tree underneath to be wiped and replaced (according to https://jackrabbit.apache.org/filevault/filter.html ), but this is clearly not what happens - I checked in the AEM cloud Publish Repository Browser and the old nodes are still there.
Unfortunately the Repo Browser has no option to delete stuff.
The nodes I need to delete are as follows:
/etc/map.example/integration.publish/https/integration.example.com/redirect_old
/etc/map.example/integration.publish/https/integration.example.fr
/etc/map.example/integration.publish/https/integration.example.de
/etc/map.example/integration.publish/https/integration.example.it
where "integration" is the name of my environment and ideally I want to use a wildcard to make this match for all environment mapping configs that also have to be cleaned.
In addition, how can I ensure that underneath integration.example.com, ONLY the listed "redirect_old" node is removed, but not other nodes that also exist there and/or are added with the same package?
The question is:
How would my filter.xml entry look like to actively remove nodes from AEM?
(nodes do no longer exist in the package, but still exist in the AEM repository)