in src/main/java/org/apache/sling/jcr/repoinit/impl/AclUtil.java [269:285]
public static void removePolicies(@NotNull SessionContext context, @NotNull List<String> paths)
throws RepositoryException {
AccessControlManager acMgr = context.getAccessControlManager();
for (String jcrPath : getJcrPaths(context.session, paths)) {
if (!isValidPath(context.getSession(), jcrPath)) {
LOG.info("Cannot remove ACL; no node at {} ", jcrPath);
continue;
}
LOG.info("Removing access control policy at {}", jcrPath);
JackrabbitAccessControlList acl = getAccessControlList(acMgr, jcrPath, false);
if (acl == null) {
LOG.info("No ACL to remove at path {}", jcrPath);
} else {
acMgr.removePolicy(jcrPath, acl);
}
}
}