How to delete users Data Monthly from firebase

In my app users stores there daily data through Firebase realtime database.These database should be clear at 1st day of every month.Can you help with that…plz

Will your users open the app daily?
What will happen supoose if the user not ooened the app on the first day of the month??

Try with clock component.

When user saves the data store the day and month in tinydb

Everytime when user open the app check the day and month.
If the month is stored month +1 and the dat is 1
Then save the data for all the usera tags with empty-string + save the one more tinydb for clear data to true
Else… Add further logic

1 Like

tnx for the idea but i cant mark it as solution . i’ll keep that as my second option