@Override
    public void removeRegisteredDevice(final Principal principal, final String deviceId) {
        Stream.of(duoSecurityMultifactorAuthenticationProvider)
            .filter(Objects::nonNull)
            .filter(BeanSupplier::isNotProxy)
            .map(provider -> provider.getDuoAuthenticationService().getAdminApiService())
            .filter(Optional::isPresent)
            .map(Optional::get)
            .forEach(Unchecked.consumer(service -> service.deleteDuoSecurityUserDevice(principal.getId(), deviceId)));
    }
This is {@link DuoSecurityMultifactorAuthenticationDeviceManager}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/DuoSecurityMultifactorAuthenticationDeviceManager.java