@Override
    public void cleanInternal() {
        transactionTemplate.executeWithoutResult(status -> {
            val count = entityManager.createQuery("DELETE FROM " + JpaGoogleAuthenticatorToken.class.getSimpleName()
                                                  + " r WHERE r.issuedDateTime>= :expired")
                .setParameter("expired", LocalDateTime.now(ZoneId.systemDefault()).minusSeconds(this.expireTokensInSeconds))
                .executeUpdate();
            LOGGER.debug("Deleted [{}] expired previously used token record(s)", count);
        });
    }
This is {@link GoogleAuthenticatorJpaTokenRepository}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-gauth-jpa/src/main/java/org/apereo/cas/gauth/token/GoogleAuthenticatorJpaTokenRepository.java