How to delete a firebase user from Flutter app?

1,286

To delete a user account, call delete() on the user object. Firebase User Delete Documentation Delete()

Share:
1,286
S A Saharukh
Author by

S A Saharukh

Updated on December 08, 2022

Comments

  • S A Saharukh
    S A Saharukh over 1 year

    I have a admin app (Flutter app) . I want to delete a firebase user by UID or Email address from my admin app.

    Or Automatically in the Firebase a function that will delete the firebase user after n days days . Like subscription

  • S A Saharukh
    S A Saharukh about 4 years
    there is no delete() function on Flutter
  • Muhammad Younas
    Muhammad Younas about 4 years
  • Jay
    Jay about 4 years
    @SASaharukh I don't believe this answer is correct. A user cannot delete other users in an app, they can only delete themselves. The method in this answer deletes the currently authenticated user and then logs them out and will not delete users by their UID
  • Thiago Silva
    Thiago Silva almost 3 years
    As stated before, it only works when the user itself wants to delete data. Not for a admin user.