Table of Contents

Method DeleteMessageAsync

Namespace
NATS.Client.JetStream
Assembly
NATS.Client.JetStream.dll

DeleteMessageAsync(StreamMsgDeleteRequest, CancellationToken)

Deletes a message from a stream.

public ValueTask<StreamMsgDeleteResponse> DeleteMessageAsync(StreamMsgDeleteRequest request, CancellationToken cancellationToken = default)

Parameters

request StreamMsgDeleteRequest

Delete message request.

cancellationToken CancellationToken

A CancellationToken used to cancel the API call.

Returns

ValueTask<StreamMsgDeleteResponse>

Delete message response

Exceptions

NatsJSException

There was an issue retrieving the response.

NatsJSApiException

Server responded with an error.