Delete subscription

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.

delete/apps/{app_id}/subscriptions/{subscription_id}

Request

  • Base URL
    https://api.onesignal.com
  • URL
    https://api.onesignal.com/apps/{app_id}/subscriptions/{subscription_id}
  • Auth
    none required

Path parameters

app_idstring required

Your OneSignal App ID in UUID v4 format. See Keys & IDs.

subscription_idstring required

The unique Subscription ID in UUID v4 format generated by OneSignal. See Subscriptions.

Response

202

object required

Changes

No recorded changes to this operation across all 2 revisions of this API.