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
stringObject key.
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
Exceptions
- NatsObjException
Object metadata was invalid or chunks can't be purged.