title: How to use where clause in google firebase Realtime Database using React Native
body: <p>I'm trying to delete document where receiver email is test@gmail.com in google firebase realtime database using react native.</p>
  <pre><code>import * as firebase from 'firebase';
  const database = firebase.database();
  database.ref(`private-message`).where('receiver','==','test@gmail.com').remove();
  </code></pre>
  <p>But I have this error.</p>
  <pre><code>database.ref(&quot;private-message&quot;).where is not a function.
  </code></pre>
  <p><a href="https://i.stack.imgur.com/zVMnP.png" rel="nofollow noreferrer">database structure like this</a></p>
  <p>Please help me!!!</p>