elementsDb.getFile().delete();
elementsDb.closeAndRemove();
    protected void repair() throws PermissionDeniedException {        Collection root = getCollection(ROOT_COLLECTION);        if (readOnly)            throw new PermissionDeniedException(DATABASE_IS_READ_ONLY);                LOG.debug("Removing index files ...");        elementsDb.getFile().delete();        config.setProperty("db-connection.elements", null);                dbWords.getFile().delete();        config.setProperty("db-connection.words", null);                valuesDb.getFile().delete();        config.setProperty("db-connection.values", null);                if (qnameValueIndexation) {            valuesDb.getFile().delete();            config.setProperty("db-connection2.values", null);        }        LOG.debug("Recreating index files ...");        try {            createIndexFiles();        } catch (DBException e) {            LOG.warn("Exception during repair: " + e.getMessage(), e);        }        reindex(null, root, true);    }