I am trying to build a Firebase Scheduled Function that queries my posts collection for expired posts and deletes them. I have limited knowledge on JavaScript so I can't figure out how to build one for myself. Is there any sample reference to use to build it ?