title: Modeshape - removing node binary files
body: <p>In our test server we want to delete nodes. We use below code</p>
  
  <pre><code>        Repository repository = .... ;
          Session session = null;
          session = repository.login(new SimpleCredentials(getApplicationName(), getPassword().toCharArray()));
  
          JcrTools jcrTools = new JcrTools();
  
          if (!session.nodeExists(fileInfo.getRealPath())) {
              return;
          }
          Node node = session.getNode(fileInfo.getRealPath());
          //delete children nodes if exists  
          jcrTools.removeAllChildren(node);
          //delete all properties include mixins  
          PropertyIterator pIt = node.getProperties();
          while (pIt.hasNext()) {
              javax.jcr.Property property = pIt.nextProperty();
              property.remove();
          }
          node.remove();
          session.save();
          session.logout();
  </code></pre>
  
  <p>The method works, we see that the files are deleted from modeshape-explorer web application. But we also see that binary files are in the binaries folder of the repository, so the nodes are not removed physically, the disk usage does not alter. What may be the problem? </p>