Due to the fact, that all resources are nested inside the JCR repository, a delete operation on one resource (node) is potentially very dangerous. If someone, for example deletes the root page of a site ALL content is gone!
Therefore we should think about possible alternatives:
Introduce a kind of "trash": Before you a resource can be deleted from the content repository, it has to be inside the trash. From trash, you can always move a resource back to it's original place.
Disable resource deletion, if there are child-resources. This way, one explicitly has to remove each and every resource.
Due to the fact, that all resources are nested inside the JCR repository, a delete operation on one resource (node) is potentially very dangerous. If someone, for example deletes the root page of a site ALL content is gone!
Therefore we should think about possible alternatives: