code: public void deleteNodeWithId( HttpServletRequest request,
                                    String rawRepositoryName,
                                    String rawWorkspaceName,
                                    String id ) throws NotFoundException, NotAuthorizedException, RepositoryException {
  
          assert rawRepositoryName != null;
          assert rawWorkspaceName != null;
          assert id != null;
  
          Session session = getSession(request, rawRepositoryName, rawWorkspaceName);
          Node node = nodeWithId(id, session);
          node.remove();
          session.save();
      }
docs: Deletes the subgraph at the node with the specified id, including all descendants.
  
  @param request the servlet request; may not be null or unauthenticated
  @param rawRepositoryName the URL-encoded repository name
  @param rawWorkspaceName the URL-encoded workspace name
  @param id the node identifier
  @throws NotFoundException if no item exists at {@code path}
  @throws javax.ws.rs.NotAuthorizedException if the user does not have the access required to delete the node with this id.
  @throws RepositoryException if any other error occurs