@Override
    public void delete(final String username, final long deviceId) {
        try {
            val account = fetchSingleYubiKeyAccount(username);
            if (account != null && account.getDevices().removeIf(device -> deviceId == device.getId())) {
                entityManager.merge(account);
            }
        } catch (final NoResultException e) {
            LOGGER.debug("No registration record could be found", e);
        }
    }
This is {@link JpaYubiKeyAccountRegistry}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-yubikey-jpa/src/main/java/org/apereo/cas/adaptors/yubikey/dao/JpaYubiKeyAccountRegistry.java