private void destroyRocksDB(final RocksDBOptions opts) throws RocksDBException {
        // The major difference with directly deleting the DB directory manually is that
        // DestroyDB() will take care of the case where the RocksDB database is stored
        // in multiple directories. For instance, a single DB can be configured to store
        // its data in multiple directories by specifying different paths to
        // DBOptions::db_paths, DBOptions::db_log_dir, and DBOptions::wal_dir.
        try (final Options opt = new Options()) {
            RocksDB.destroyDB(opts.getDbPath(), opt);
        }
    }
Local KV store based on RocksDB

@author dennis
@author jiachun.fjc
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/storage/RocksRawKVStore.java