Delete a user record

Used to delete a single, specific Player ID record from a specific OneSignal app.

🚧

Requires Authentication Key

Requires your OneSignal App's REST API Key, available in Keys & IDs.

Path Parameters

ParameterTypeDescription
ONESIGNAL_PLAYER_IDStringRequired: OneSignal Player ID.
ONESIGNAL_APP_IDStringRequired: App id

Example Code - Cancel notification

curl --include \
     --request DELETE \
     --header "Authorization: Basic YOUR_ONESIGNAL_API_KEY" \
https://onesignal.com/api/v1/players/ONESIGNAL_PLAYER_ID?app_id=YOUR_APP_ID

Result Format - Cancel notification

{'success': "true"}
Language