@Override
    public void removeRegisteredDevice(final Principal principal, final String deviceId) {
        FunctionUtils.doAndHandle(__ -> {
            val credentialId = ByteArray.fromBase64Url(deviceId);
            webAuthnCredentialRepository.removeRegistrationByUsernameAndCredentialId(principal.getId(), credentialId);
        });
    }
This is {@link WebAuthnMultifactorAuthenticationDeviceManager}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-webauthn-core/src/main/java/org/apereo/cas/webauthn/WebAuthnMultifactorAuthenticationDeviceManager.java