@Override
    public void remove(final String uid, final Integer otp) {
        val count = this.entityManager.createQuery("DELETE FROM " + JpaGoogleAuthenticatorToken.class.getSimpleName()
                                                   + " r WHERE r.userId = :userId and r.token = :token")
            .setParameter("userId", uid.trim().toLowerCase(Locale.ENGLISH))
            .setParameter("token", otp)
            .executeUpdate();
        LOGGER.debug("Deleted [{}] 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