How to delete firebase Authentication Users from Android App?

后端 未结 3 848
暖寄归人
暖寄归人 2021-01-27 14:00

Firebase dashboard view here

I need to remove A user from firebase authenticated Users list - using my mobile application. Authentication method is email and password au

3条回答
  •  独厮守ぢ
    2021-01-27 14:36

    The Firebase Admin SDK allows deleting existing users by their uid: for reference: Check this link

    FirebaseAuth.getInstance().deleteUserAsync(uid).get();
    System.out.println("Successfully deleted user.");
    

    For app you can create API that will call this block on server. e.g. deleteUserCall() that takes email or userId as parameter and on server side against that userId you can delete that user

提交回复
热议问题