Skip to content

ostapetc/onesignal-device-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Onesignal device cleaner

Tool for deleting devices in the onesignal.com. This is useful since the official vendor api does not support the ability to delete devices.

Why do you need to remove the devices? Reducing the number of devices reduces the number of 50x errors when creating Push Notifications.

Usage

Exports device ids to file that have been inactive for more than 365 days.

node ./src/export.js --appId 1 --restKey ZTc4 --days 365 --targetFile=/tmp/devices-to-delete.txt

Deletes devices in the file --targetFile=/tmp/devices-to-delete.txt

node src/delete.js --appId 1 [email protected] --password=p1 --targetFile=/tmp/devices-to-delete.txt

Disclaimer

This tool is provided as-is, use at your own risk!

About

Tool for deleting devices in the onesignal.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published