Delete segments from OneSignal. Does not delete users or subscriptions.
The Delete segment method is used when you want to programmatically delete a segment from within the OneSignal Dashboard UI.
Once a segment is deleted, it cannot be recovered. You will need to create a new segment with the same filters.
You can pass in the segment_id
dictating which segment from our dashboard will be deleted.
The segment_id
can be found using the View segments API or in the URL of the segment when viewing it in the dashboard as shown below:
Example shows segment ID
Your App API key with prefix Key
. See Keys & IDs.
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
The segment_id
can be found in the URL of the segment when viewing it in the dashboard.
200
The response is of type object
.
Delete segments from OneSignal. Does not delete users or subscriptions.
The Delete segment method is used when you want to programmatically delete a segment from within the OneSignal Dashboard UI.
Once a segment is deleted, it cannot be recovered. You will need to create a new segment with the same filters.
You can pass in the segment_id
dictating which segment from our dashboard will be deleted.
The segment_id
can be found using the View segments API or in the URL of the segment when viewing it in the dashboard as shown below:
Example shows segment ID
Your App API key with prefix Key
. See Keys & IDs.
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
The segment_id
can be found in the URL of the segment when viewing it in the dashboard.
200
The response is of type object
.