entries.save(false);
    private void destroyDirectory(SVNDirectory parent, SVNDirectory dir, boolean deleteWorkingFiles) throws SVNException {        SVNEntries entries = dir.getEntries();        entries.getEntry("").setIncomplete(true);        entries.save(false);                // iterate over dir's entries, delete files and recurse into dirs        for (Iterator ents = entries.entries(); ents.hasNext();) {            SVNEntry entry = (SVNEntry) ents.next();            if ("".equals(entry.getName())) {                continue;            }            if (entry.getKind() == SVNNodeKind.FILE) {                dir.destroy(entry.getName(), deleteWorkingFiles);            } else if (entry.getKind() == SVNNodeKind.DIR) {                SVNDirectory childDirectory = dir.getChildDirectory(entry.getName());                if (childDirectory == null) {                    entries.deleteEntry(entry.getName());                } else {                    // recurse                    destroyDirectory(dir, childDirectory, deleteWorkingFiles);                }            }        }        entries.save(false);        // delete dir's entry in parent.        if (parent != null) {            SVNEntries parentEntries = parent.getEntries();            parentEntries.deleteEntry(dir.getRoot().getName());            parentEntries.save(true);        }        // delete all admin files        SVNFileUtil.deleteAll(new File(dir.getRoot(), ".svn"));        // attempt to delete dir - will not be deleted if there are wc files left.        dir.getRoot().delete();    }