noebs

Docs : SDK : deleteUser

deleteUser lets you delete the logged in user and all its data. This API will return a promise that gets resolved once the user gets marked for deletion. It will also automatically invalidate the user's session and log out the user.

    userbase.deleteUser()
      .catch((e) => console.error(e))
  

Errors