Skip to main content
Version: 2.11

Delete Message

Deletes a specific message from a stream.

Subject

$JS.API.STREAM.MSG.DELETE.{stream}

Where {stream} is the name of the stream.

Request

A request to the JetStream $JS.API.STREAM.MSG.DELETE API

seqintegerrequired
Stream sequence number of the message to delete
unsigned 64 bit integer
Minimum:0
Maximum:18446744073709552000
no_eraseboolean
Default will securely remove a message and rewrite the data with random data, set this to true to only remove the message

Response

A response from the JetStream $JS.API.STREAM.MSG.DELETE API

One of the following:
Option 1 (object)
errorobjectrequired
Option 2 (object)
successbooleanrequired
typeconst: "io.nats.jetstream.api.v1.stream_msg_delete_response"required