问题
My requirement is to run a clean-up job on my firebase DB.
- Does firebase has an api to run through the database for any such operations?
- If so can we also clean up references of an object within different data sets?
回答1:
At present, Firebase does not allow you to run scheduled tasks. To do so, you will need to set up a cron job which runs a Java or Node.js process to do the cleanup.
The cleanup can be done using the remove() method. You might make use of Firebase queries to easily grab the data you need to delete.
来源:https://stackoverflow.com/questions/32912899/firebase-is-there-an-api-to-run-clean-up-scripts-on-firebase