Skip to main content
delete/v2/topics/{topicKey}/subscriptions
Request example
Response
delete/v2/topics/{topicKey}/subscriptions

Authorization

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

Path parameters

topicKeystringrequired#
The key identifier of the topic

Headers

idempotency-keystring#
A header for idempotency purposes

Body

application/json
subscriberIdsstring[]deprecated#
List of subscriber identifiers to unsubscribe from the topic (max: 100). @deprecated Use the "subscriptions" property instead.

Items: 1–100

Example:
subscriptionsstring · 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.

Items: 1–100

Example:

Responses

application/json
Subscriptions deleted successfully
dataobject[]required#
The list of successfully deleted subscriptions
metaobjectrequired#
Metadata about the operation
errorsobject[]#
The list of errors for failed deletion attempts