@Override
    public void remove(final ZonedDateTime expirationDate) {
        transactionTemplate.executeWithoutResult(__ -> {
            val value = DateTimeUtils.dateOf(expirationDate);
            LOGGER.trace("Removing expired records on or after [{}]", value);
            val count = entityManager.createQuery("DELETE FROM " + ENTITY_NAME + " r WHERE :expirationDate >= r.expirationDate")
                .setParameter("expirationDate", value)
                .executeUpdate();
            LOGGER.info("Found and removed [{}] trusted records", count);
        });
    }
This is {@link JpaMultifactorAuthenticationTrustStorage}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-trusted-mfa-jdbc/src/main/java/org/apereo/cas/trusted/authentication/storage/JpaMultifactorAuthenticationTrustStorage.java