Method DeleteStreamAsync
DeleteStreamAsync(string, CancellationToken)
Deletes a stream.
public ValueTask<bool> DeleteStreamAsync(string stream, CancellationToken cancellationToken = default)
Parameters
stream
stringStream name to be deleted.
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
Exceptions
- NatsJSException
There was an issue retrieving the response.
- NatsJSApiException
Server responded with an error.
- ArgumentException
The
stream
name is invalid.- ArgumentNullException
The
stream
name isnull
.