#include "tensorstore/kvstore/operations.h"
Future<TimestampedStorageGeneration>
tensorstore::kvstore::Delete(const KvStorestore,
                             
std::string_view key,
                             
WriteOptions options = {});
Future<TimestampedStorageGeneration>
tensorstore::kvstore::DeleteCommitted(const KvStorestore,
                                      
std::string_view key,
                                      
WriteOptions options = {});

Performs an optionally-conditional delete.

Equivalent to Write(store, key, std::nullopt, options) or WriteCommitted(store, key, std::nullopt, options).

Parameters:
const KvStore &store

KvStore from which to delete the key.

std::string_view key

Key to delete, interpreted as a suffix to be appended to store.path.

WriteOptions options = {}

Specifies options for deleting.