cleanLongTermSubscriptions

fun cleanLongTermSubscriptions()

Clears all the ongoing long term subscriptions associated with the currently authenticated user from the client local storage.

This method requires a user to be authenticated.

WARNING: this method doesn't cancel the subscriptions! It only removes them from the local storage, so that the DatasyncService.getLongTermSubscriptions method can no longer retrieve them. In order to actually cancel them, use DatasyncNode.cancelSubscriptionsThroughPushNotification, DatasyncNode.cancelSubscriptionsThroughWebhook or LongTermSubscription.cancel (otherwise they may still persist in the Webcom back end).