Menu

Users

Delete every device of one of your users, for account deletion and privacy requests.

Pushwren knows a user only as the ID your app passes to Pushwren.setUserID. To send to a user, target userIds in POST /v1/notifications; to find their devices, use GET /v1/devices?userId=.

DELETE /v1/users/{userId}

Secret key. Deletes every device linked to the user, with their tags. Answers 204, also when the user had no devices. Use it when someone deletes their account or asks you to erase their data.

curl -X DELETE https://api.pushwren.com/v1/users/u_123 -H "Authorization: Bearer $PUSHWREN_SECRET_KEY"

A device whose app is still installed registers again, as a new device with no user, the next time the app syncs.