title: How to delete user account from admin account in listview in Firebase?
body: <p>I've created code to delete user. I create admin function that can delete the user. I'have created the coding but then I realized that user account only got deleted at the user database but not the authentication? How to delete the user database with their authentication at Firebase? </p>
  
  <pre><code>@Override
      public void onBindViewHolder(@NonNull MyViewHolder myViewHolder, final int i) {
  
          myViewHolder.email.setText(custList.get(i).getEmail());
          myViewHolder.name.setText(custList.get(i).getName());
          myViewHolder.telephone_number.setText(custList.get(i).getTelephone_number());
  
  
          myViewHolder.btnDelete.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
  
                  String email = custList.get(i).getEmail();
                  String id = custList.get(i).getId();
  
                  DatabaseReference dbCust = FirebaseDatabase.getInstance().getReference("Customer");
                  dbCust.child(id).removeValue();
  
                  //Toolbar
                  // Remove the item on remove/button click
                  custList.remove(i);
                  /*
                      Parameters
                          position : Position of the item that has now been removed
                  */
                  notifyItemRemoved(i);
  
                  /*
                      Parameters
                          positionStart : Position of the first item that has changed
                          itemCount : Number of items that have changed
                  */
                  notifyItemRangeChanged(i, custList.size());
  
                  // Show the removed item label
                  Toast.makeText(context, email + " has been removed", Toast.LENGTH_SHORT).show();
  
              }
  
          });
  
      }
  
  
  
  
  </code></pre>