It is possible to add custom properties in docx4j like this:
final DocPropsCustomPart customPart = getDocPropsCustomPart();
final Properties customProperties = customPart.getJaxbElement();
...
customProperties.getProperty().add(newProperty);
But how can I remove a property that is already set?