func dbClear(rdb *C.DBEngine, key MVCCKey) error { if len(key.Key) == 0 { return emptyKeyError() } return statusToError(C.DBDelete(rdb, goToCKey(key))) }
// Clear removes the item from the db with the given key. func (r *RocksDB) Clear(key proto.EncodedKey) error { if len(key) == 0 { return emptyKeyError() } return statusToError(C.DBDelete(r.rdb, goToCSlice(key))) }