docs: public void delete() throws DocumentStoreNotDeletedException {
          try {
              this.close();
          } catch (Exception e) {
              // caught exception could be something benign like DocumentStore already closed, so just log
              logger.log(Level.WARNING, "Caught exception whilst closing DocumentStore in delete()", e);
          }
          if (!location.exists()) {
              String msg = String.format("DocumentStore %s doesn't exist on disk", location);
              logger.warning(msg);
              throw new DocumentStoreNotDeletedException(msg);
          } else {
              try {
                  FileUtils.deleteDirectory(location);
              } catch (IOException ioe) {
                  String msg = String.format("DocumentStore %s not deleted", location);
                  logger.log(Level.WARNING, msg, ioe);
                  throw new DocumentStoreNotDeletedException(msg, ioe);
              }
              eventBus.post(new DocumentStoreDeleted(databaseName));
          }
      }