I have a Google DataStore that I inherited and this Datastore has about 9M records. I'd like to remove all old records (say everything that is older than 1 month old). Generally speaking, when I use google cloud console Datastore->query by kind, I'm able to put SQL like statements:
select * from table limit 5
however when I try using the "query by gql" to do something like delete rows:
delete from table where date<"2019-01-01"
It doesn't work- I get the error: "GQL Query error: Encountered "delete" at line 1, column 1. Was expecting: "select" ... "
Is there a simple way to run delete on all old records?