Method DeleteAsync
DeleteAsync(CancellationToken)
Delete this stream.
public ValueTask<bool> DeleteAsync(CancellationToken cancellationToken = default)Parameters
- cancellationTokenCancellationToken
- A CancellationToken used to cancel the API call. 
Returns
Remarks
After deletion this object can't be used anymore.
Exceptions
- NatsJSException
- There is an error retrieving the response or this consumer object isn't valid anymore because it was deleted earlier. 
- NatsJSApiException
- Server responded with an error.