1. rocksdb::WriteBatch batch;
    2. batch.SingleDelete(key1);
    3. s = db->Write(rocksdb::WriteOptions(), &batch);

    Notes

    • SingleDelete is NOT compatible with cuckoo hash tables, which means you should not call SingleDelete if you set options.memtable_factory with
    • Consecutive single deletions are currently not allowed