Function delete_segments

Source
pub async fn delete_segments(
    configuration: &Configuration,
    app_id: &str,
    segment_id: &str,
) -> Result<DeleteSegmentSuccessResponse, Error<DeleteSegmentsError>>
Expand description

Delete segments (not user devices) - Required: OneSignal Paid Plan You can delete a segment under your app by calling this API. You must provide an API key in the Authorization header that has admin access on the app. The segment_id can be found in the URL of the segment when viewing it in the dashboard.