@Override
    public void delete(final String username, final long deviceId) {
        if (devices.containsKey(username)) {
            devices.get(username).getDevices().removeIf(device -> device.getId() == deviceId);
        }
    }
This is {@link PermissiveYubiKeyAccountRegistry}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-yubikey-core/src/main/java/org/apereo/cas/adaptors/yubikey/registry/PermissiveYubiKeyAccountRegistry.java