Closed kozakstar closed 1 year ago
Hey @kozakstar, Thank you for writing in. You can definitely use our track API to delete the device.
But I won't recommend it If you are using the SDK as well because that will just create an inconsistency, SDK will still assume that the customer is still associated with that device token even though that device token has been deleted for the customer.
Can you explain your use case a little bit more so we can understand it better and recommend something?
Hi @Shahroz16 thank you for your quick reply . We also use the track API to identify the user, that's why I didn't want to use the SDK for the sake of calling a single method. If using the track API to remove the token device will give the same result as clearIdenify() I would like to use it. The result I want is that after a user logs out he won't get push notifications
Hey @kozakstar, clearIdentify()
would delete the device for you as well, so that should cover your use-case.
Closing this due to inactivity, please feel free to re-open if you face any more issues.
Can i use this endpoint
https://track.customer.io/api/v1/customers/{identifier}/devices/{device_id}
instead of CustomerIO.clearIdentify(). I want to delete device when a user log out but i don't want to use SDK .