OneSignal automatically deletes a User when their last Subscription is deleted and the User has no External ID or aliases. Such a User can no longer be referenced by any identifier, so the User record and its properties (such as Tags) are removed.Users with an External ID or alias are kept even when they have zero Subscriptions. Their properties are preserved, and a new Subscription with the same External ID reconnects to the same User profile. See User lifecycle.
Deleting records through the dashboard will not delete unsubscribed records that may match the segment criteria. In order to remove all records that meet the conditions of the segment, you must first get the full list of users.Dashboard export
From the segments page, select the 3 vertical dots to the right of the segment you’re looking to delete records from.
Select “View Subscriptions” to be taken to the Subscriptions page sorted by the records that meet the segment criteria.
Select “Export” on the top right of the page and check the box saying “Include unsubscribed records”
Open the gzip link returned from the request. Depending on the file size the link may be ready before it can actually be downloaded. In this case you would wait and try to open again, or poll the file url until it becomes available.
Once you have the list of subscription records, you can make a Delete User or Delete Subscription request to permanently delete the exported records. See here for limits when running delete requests in parallel.If you are unable to make API requests, please reach out to support@onesignal.com with details on which steps you followed.
When does OneSignal automatically delete subscriptions?
On the Free Plan, OneSignal automatically deletes dormant push subscriptions after 18 months of inactivity. On Paid Plans, subscriptions are kept until you manually delete them.
OneSignal deletes a User automatically when their last Subscription is deleted and the User has no External ID or aliases. Users with an External ID or alias are kept with all of their properties, even with zero Subscriptions. See Automatic user deletion.
Users
Understand the OneSignal User model and how users relate to subscriptions.
Subscriptions
Learn about subscription types and how they connect to users.
Segmentation
Build audience segments to target or manage groups of users.
Export user data
Download a CSV of user data for backup or compliance purposes.