@Override
    public void clean() {
        val now = ZonedDateTime.now(ZoneOffset.UTC);
        LOGGER.debug("Cleaning expired records with an expiration date greater than or equal to [{}]", now);
        val query = new Query().addCriteria(Criteria.where("expirationDate").gte(now));
        mongoTemplate.remove(query, MongoDbPasswordlessAuthenticationEntity.class, properties.getCollection());
    }
This is {@link MongoDbPasswordlessTokenRepository}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-passwordless-mongo/src/main/java/org/apereo/cas/impl/token/MongoDbPasswordlessTokenRepository.java