clear Profile
Clears the profile data of the currently authenticated user stored by the Webcom authentication service. This operation is asynchronous and calls the given callback once performed.
This method is equivalent to calling setProfile with a null
value.
This sensitive operation fails if no user is currently authenticated or if the user has been authenticated for a too long time (in this case, her·his authentication needs to be refreshed by authenticating again).
Note about GDPR: this method permanently destroys all profile data both related to the user identity (or authentication means) and managed by the Webcom Authentication service itself. In any case, it cannot destroy any other personal data stored and managed by the application (for example using the DatasyncService), as the Webcom back end cannot be aware of them. You are responsible for deleting such data yourself.