title: Not Getting Unique Id Generated By Firebase Database
body: <p>This is the code which is for deleting a perticular post...
  Here what i am doing is that when user click the delete button then the post should be deleted but insteed of that nothing is being deleting.Also when i put log to check whether i am getting the unique id generated by firebase database then it shows like this</p>
  
  <p>'2020-04-16 10:00:41.328 29431-29431/com.example.zone D/sanyam: MBlog'  </p>
  
  <p>My firebase database Looks  Like this(I want to delete the that unique id)</p>
  
  <pre><code>MBlog
  -M4iN100Ic5TiSjRRTtX
  -M4iNkUGOCd7aKSqg09q
  -M4mco3s-nEo0ohXYwIm
  -M4xzHyoJjE0QY-5cKeZ
     ``` 
  
      //delete button
   ```      holder.button.setOnClickListener(new View.OnClickListener() {
          @Override
            public void onClick(View v) {
  
              mPostDatabase = FirebaseDatabase.getInstance().getReference().child("MBlog"); //child name must be same otherwise the
              //DatabaseReference newPost = mPostDatabase.getRef();
              mPostDatabase.addValueEventListener(new ValueEventListener() {
                  @Override
                  public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
  
                      String uid = mPostDatabase.getKey();
  
                      Log.d("sanyam",uid);
                      mPostDatabase.child(uid).removeValue();
                  }
  
                  @Override
                  public void onCancelled(@NonNull DatabaseError databaseError) {
  
                  }
              });
          }
          });
  
    }```
  
  </code></pre>