I am trying to remove old entries from Firebase Database automatically. Is it possible to configure Firebase to remove old entries for a specific child ?
            Asked
            
        
        
            Active
            
        
            Viewed 1,783 times
        
    2
            
            
         
    
    
        Frank van Puffelen
        
- 565,676
- 79
- 828
- 807
 
    
    
        user655561
        
- 659
- 1
- 9
- 24
- 
                    1I thought it could be done by add a timestamp each time you insert an entry. And every time Initialize with delete all expired entries in the database. Each time the page is visited, the database will be maintained. – ling7334 Nov 25 '16 at 02:33
- 
                    1See also https://stackoverflow.com/questions/37501870/how-to-delete-firebase-data-after-n-days – Kato Feb 01 '19 at 16:19
1 Answers
5
            There is currently no API to automatically expire items in the Firebase Database. Such a so-called time-to-live (or ttl) would be an interesting addition, but for the moment you'll have to build it yourself.
 
    
    
        Frank van Puffelen
        
- 565,676
- 79
- 828
- 807