Skip to main content
DELETE
TypeScript

Authorizations

Authorization
string
header
required

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

Headers

idempotency-key
string

A header for idempotency purposes

Path Parameters

topicKey
string
required

The key identifier of the topic

Body

application/json
subscriberIds
string[]
deprecated

List of subscriber identifiers to unsubscribe from the topic (max: 100). @deprecated Use the "subscriptions" property instead.

Example:
subscriptions
(string | object)[]

List of subscriptions to unsubscribe from the topic (max: 100). Can be either a string array of subscriber IDs or an array of objects with identifier and/or subscriberId. If only subscriberId is provided, all subscriptions for that subscriber within the topic will be deleted.

Example:

Response

Subscriptions deleted successfully

data
object[]
required

The list of successfully deleted subscriptions

meta
object
required

Metadata about the operation

errors
object[]

The list of errors for failed deletion attempts