Delete segments from OneSignal. Does not delete users or subscriptions.
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
true