I have my server side in django with postgres.
What I want to do is to clear a specific table from all of its data at 12:00 (midnight) everyday.
I guess the code for delete will be
Rides.objects.all().delete()
What I am not sure about is how to have a process or sort of a thread that will do it everyday at 12:00.
Also I think maybe the server clock should be set to my TimeZone, to make sure its deleting the data at 12:00 exactly.
How should I go about this? any ideas?