public void removeItem()

in src/main/java/org/apache/sling/jcr/base/internal/mount/ProxySession.java [362:380]


    public void removeItem(String absPath) throws VersionException, LockException, ConstraintViolationException, AccessDeniedException, RepositoryException {
        if (sync != null) {
            sync.remove(absPath);
        }
        if (isMount(absPath)) {
            this.mount.removeItem(absPath);
        } else {
            this.jcr.removeItem(absPath);
            if (isMountParent(absPath)) {
                for (String mountPoint : this.mountPoints) {
                    if (mountPoint.startsWith((absPath + "/").replace("//", "/"))) {
                        for (NodeIterator iter = this.mount.getNode(mountPoint).getNodes(); iter.hasNext(); ) {
                            iter.nextNode().remove();
                        }
                    }
                }
            }
        }
    }