Delete a specific subscription by its subscription_id. This stops messages from being sent to that subscription but does not prevent future subscriptions with the same token.
token
.
subscription_id
You must provide the subscription_id
of the subscription to be deleted. This ID is a UUID generated by OneSignal and is immutable.
To find the subscription_id
:
subscriptions
array in the response.type
, token
, or other metadata.id
field as the subscription_id
.Your OneSignal App ID in UUID v4 format. See Keys & IDs.
The unique Subscription ID in UUID v4 format generated by OneSignal. See Subscriptions.
202
The response is of type object
.