DELETE
/
v1
/
messages
/
transaction
/
{transactionId}
import { Novu } from "@novu/api";

const novu = new Novu({
  secretKey: "YOUR_SECRET_KEY_HERE",
});

async function run() {
  const result = await novu.messages.deleteByTransactionId("<id>");

  // Handle the result
  console.log(result);
}

run();
This response has no body data.

Authorizations

Authorization
string
header
required

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

Headers

idempotency-key
string

A header for idempotency purposes

Path Parameters

transactionId
string
required

Query Parameters

channel
enum<string>

The channel of the message to be deleted

Available options:
in_app,
email,
sms,
chat,
push