1

I'm making an application to make daily payments, so I wanted that every day at 00:00, the payment data of the Firestore would be reset, for the customer to make the payment again.

Thats a way to do that with some back-end code on the Firebase Server?

  • 2
    have you checked this? https://firebase.google.com/docs/functions/schedule-functions You need to upgrade your plan to Blaze plan if you wan to use this – brijmcq May 26 '20 at 13:24

1 Answers1

2

Create scheduled function for that with higher timeout, that will delete your collection. Function code will be very similar to this

Dominik Šimoník
  • 1,442
  • 10
  • 17