@Override
    public void deleteToken(final PasswordlessAuthenticationToken token) {
        val query = new Query().addCriteria(Criteria.where("username").is(hashUsername(token.getUsername())).and("id").is(token.getId()));
        val result = mongoTemplate.remove(query, MongoDbPasswordlessAuthenticationEntity.class, properties.getCollection());
        LOGGER.debug("Removed [{}] token record(s)", result.getDeletedCount());
    }
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