I am building a website where a certain "admin" user can delete any other user's account. I already have the code in for checking whether a user is an admin user, but I cannot find a way to delete any user's account in Firebase with their email address (you can only delete your own account). I saw this post: Link to Stackoverflow Post. But, this states that the only solution is by using the Firebase Admin SDK (but if I understood that well that is only useful on a server??). Is there maybe another way to delete any user without using the Admin SDK?
Code for deleting your own account (just as a reference):
var user = firebase.auth().currentUser;
user.delete().then(function() {
// User deleted.
}).catch(function(error) {
// An error happened.
});
Thank you.