Open nhmathis opened 7 years ago
As of now, there is no direct way to remove files from DCM. I believed initially the they could be deleted through the objects-from-def
target, but I cannot identify the correct class
and name
values to properly remove a file.
Another possible option is through a test file: https://github.com/ibm-datapower/datapower-configuration-manager/blob/2a2a2b81e455afd1768f5ee6b0464ecd58dd6f6b/tests-wdp/file-delete.ant.xml
Through some searching of the project, I've identified a test that may be able to delete files. (There is a delete dir too!) If it still works, this is likely someone we can pull into the deploy.ant.xml
and make fully supported. For the time being, you should be able to run the target
through the file-delete.ant.xml
file as you would for other supported targets.
Original Question:
I see no definition element to delete files or objects, Let’s say I have an existing configuration where I would like to renew the certificate for a particular crypto certificate object, I can change the certificate reference through “Certificate-from-def” element but, I cannot delete the OLD certificate file from the appliance. Is there a way to achieve this via plugin ?