To remove push tokens for many devices at once, use the Pushwoosh API. Two methods are available, depending on what you need:
- /unregisterDevice — removes the device's push token but keeps the device record.
- /deleteDevice — fully removes the device and all its associated data in the application.
Here's how to approach a bulk cleanup:
- Retrieve the device list. Export the devices of the platform you want to clean up (for example with /exportSegment, which returns a CSV with HWIDs), or use the list stored on your own backend.
-
Unregister in bulk. Use /bulkUnregisterDevice (Audience API) to unregister many devices in a single request, then poll bulkUnregisterDevice status with the
request_idreturned. For a handful of devices you can still call /unregisterDevice once per device.
Important: there is no Control Panel button that wipes all tokens of one platform — this is an API operation, and it is irreversible. Affected devices become reachable again only after your app registers them anew.
Comments
0 comments
Please sign in to leave a comment.