Table of Contents

Method DeleteAsync

Namespace
NATS.Client.ObjectStore
Assembly
NATS.Client.ObjectStore.dll

DeleteAsync(string, CancellationToken)

Delete an object by key.

public ValueTask DeleteAsync(string key, CancellationToken cancellationToken = default)

Parameters

key string

Object key.

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask

Exceptions

NatsObjException

Object metadata was invalid or chunks can't be purged.