Delete the data for a sent or scheduled notification so it will no longer be available on the OneSignal dashboard or through the API

Example

curl --request DELETE \
     --url 'https://api.onesignal.com/notifications/NOTIFICATION_ID?app_id=APP_ID' \
     --header "Authorization: Basic <YOUR_REST_API_KEY>" \
     --header 'accept: application/json'

Language