I wanted to delete millions of old records.date is a field we can use that

Seems to generate a syntax error.

Why do you want to batch your deletes?

Please share sample documents, some that need to be deleted and some that should not.

If you have a year you probably have month too. You could delete one month at a time rather than a year at a time.