@Override
    public void deleteTokens(final String username) {
        val query = new Query().addCriteria(Criteria.where("username").is(hashUsername(username)));
        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