private void deleteComment(HttpServletRequest request, Content websiteNode)
      throws RepositoryException {

    if (websiteNode.hasContent("comments")) {
      Content commentsNode = websiteNode.getContent("comments");
      commentsNode.delete(request.getParameter("id"));
      websiteNode.save();
    }
  }
 public void deleteNode(String parentPath, String label)
     throws ExchangeException, RepositoryException {
   Content parentNode = getHierarchyManager().getContent(parentPath);
   String path;
   if (!parentPath.equals("/")) { // $NON-NLS-1$
     path = parentPath + "/" + label; // $NON-NLS-1$
   } else {
     path = "/" + label; // $NON-NLS-1$
   }
   this.deActivateNode(path);
   parentNode.delete(label);
   parentNode.save();
 }