When I delete a user from my backend I also want to delete the entry from the OneSignal database to keep my numbers and pushes precise (also important for A/B testing). Is there a way to do that? I searched the API but I couldn't seem to find anything to delete an entry.
Thanks!
OneSignal intentionally does not support deleting users through the API. It is possible to delete users individually on the dashboard, but this is mainly meant for removing devices for troubleshooting when first setting up OneSignal on your website or app.
Here are the reasons why deleting users via the API is not currently supported:
You can use this line to unsubscribe user from receiving the notifications:
OneSignal.setSubscription(false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With