title: How to compare value and delete from firebase realtime database?
body: <p>I am using Firebase realtime database in Android app, and have data like this:</p>
  
  <p><img src="https://i.stack.imgur.com/QOqyT.png" alt="This is my database"></p>
  
  <p>How can I access that data from javascript.
  I just wanna code function to get value of every endTime and compare with current time and if endTime &lt;= Current Time then delete values yellow marked on anther image.</p>
  
  <p><img src="https://i.stack.imgur.com/IPOCz.png" alt="Yellow Marked Values"></p>
  
  <p>Events is fixed value.</p>
  
  <p>Indjija, Vojvodina and -KsB2mVkpgQe_fRyFFH4 are  auto generated so it's possible to have more values like that two. </p>
  
  <p>I know how to solve that in android studio with Java code but I'm interesting about implementing server functions.</p>