In order to delete an account, the Firebase Admin SDK will require you to have the user UID; such an ID can be grabbed in different ways, but one of the functionalities we have seen is for users to delete their own account, so this utility can be helpful. Let's see how we can make it happen.
Implementing user account management by deleting accounts
Getting ready
In the user dashboard or settings pages, we want users to have a button to delete their accounts; this will launch a post request to our backend, calling the API to delete the account. This final should be secure enough to host such a functionality.