Creating a schedule to delete expired tokens

I am using mongodb compass and flask.
We have generated token in flask and its collection is in mongodb compass
How I can delete the expired token using cron job