title: How to delete from firebase realtime database?
body: <p>I am using Firebase realtime database in Android app, and have data like this:
  <a href="https://i.stack.imgur.com/erVT6.png"><img src="https://i.stack.imgur.com/erVT6.png" alt="enter image description here"></a></p>
  
  <p><strong>How can i delete the record "Apple"</strong> (marked in picture)?</p>
  
  <p>According to the docs, to remove an item you call <strong>removeValue()</strong> on the reference. But to get the reference i require the child <strong>id</strong>. Because its a random generated id (<em>-KISNx87aYigsH3ILp0D</em>), how to delete it?</p>