Firebase - Is there an API to run clean-up scripts on firebase

瘦欲@ 提交于 2020-01-04 05:31:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!