I would like to remove the child node by keeping the parent node hierarchy as is. can someone help how to achieve this.
I would like to remove only child node "/name" here
you can use various ways via code using java JCR API
Node root = getJcrSession().getRootNode();
String path = getFacetPath( repositoryId, facetId, name );
if ( root.hasNode( path ) )
Node node = root.getNode( path );
// also remove empty container nodes
Node parent = node.getParent();
node = parent;
while ( !node.hasNodes() );
catch ( RepositoryException e )
throw new MetadataRepositoryException( e.getMessage(), e );
I would like to retain the parent structure for e.g.
/content/person should retain while "name" is removed only
Another way would be to run the groovy script to remove a node from a specific path. check  and "Remove corrupted nodes manually" at  on how to use it.
This should only remove the child node