title: Delete a specific user from Firebase
body: <p>Is there a way I can get a specific user account from firebase and then delete it?</p>
  
  <p>For instance:</p>
  
  <pre><code>// I need a means of getting a specific auth user.
  var user = firebase.auth().getUser(uid);
  // Note the getUser function is not an actual function.
  </code></pre>
  
  <p>After, I want to delete that user and their additional data:</p>
  
  <pre><code>// This works
  user.delete().then(function() {
     // User deleted.
     var ref = firebase.database().ref(
        "users/".concat(user.uid, "/")
     );
     ref.remove();
  });
  </code></pre>
  
  <p><a href="https://firebase.google.com/docs/auth/web/manage-users#delete_a_user" rel="noreferrer">Firebase Documentation</a> states that users can be deleted if they are currently logged in:</p>
  
  <pre><code>firebase.auth().currentUser.delete()
  </code></pre>
  
  <p><strong>My aim is to allow logged in admin user to delete other users from the system.</strong></p>