Firebase - Delete user using FirebaseAdmin in ASP.NET CORE 3.1

Delete or Remove user from firebase using the Firebase Admin SDK in ASP.NET CORE 3.1

September 10, 2020

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)

Leave a reply

Will not be displayed in comment box .

Loading...