documents in the CMS are defined under /hippo:namespaces, they consist of several nodes defined in JCR in the CND. To remove a document type from the CMS, it is sufficient to delete it from /hippo:namespaces.
Removing a CND entry is more tricky, as this is an unsafe change. In local development, just make sure you remove all instances of the node type and delete it from your CND in your repository data modules. Also, be sure to delete any local repo (like ./storage).
In a deployed environment, removing an unwanted CND entry is much trickier and is not recommended. It is a lot of effort that will not result in anything for the end-user. I would recommend just ignoring deprecated CND entries and moving on.
Hi,
Deleting doc types from cnd just isn’t supported on existing repositories, from the JackRabbit JCR implementation… that is a backwards incompatible change. You’d need to remove all instances of that type as well, and is unpredictable how much that’d be.
@jeroen.hoffman
Thanks for that hint. I do not want to delete documentType already deployed to the production.
In my case they are only in the developement area and of course I also delete all Instances of documents with that document type