def METHOD_NAME():
    logger.info("Deleting schedules of past scheduled queries...")
    queries = models.Query.past_scheduled_queries()
    for query in queries:
        query.schedule = None
    models.db.session.commit()
    logger.info("Deleted %d schedules.", len(queries))