How to remove user authData


I have a use case where i dont delete a user directly, i intend to disable the user, but i need to remove the user authData,
I am doing this via cloud code, i dont seem to find how to remove the authdata


Found a way using some help in the community posts (using cloudcode)

    let authdata = user.get('authData')
      for (var x in authdata){
        await  user._unlinkFrom(x);


use this for example if authenticated using Facebook.

var currentUser = request.user