To delete firebase user first we have to Retrieve user data based on Email Address
UserRecord userRecord = await FirebaseAuth.DefaultInstance.GetUserByEmailAsync("youremail@domain.com");
Now we can Delete a user using "Uid" which we will get from user data
await FirebaseAuth.DefaultInstance.DeleteUserAsync(userRecord.Uid);
Note:
1. To know how to create and register user using the firebase admin Click here
2. To know how to update user using firbase admin Click here
Additional References:
1. https://firebase.google.com/docs/auth/admin/manage-users#c
Post Comments(0)