@Override
    public void removeRegisteredDevice(final Principal principal, final String deviceId) {
        repository.delete(Long.parseLong(deviceId));
    }
This is {@link OneTimeTokenCredentialDeviceManager}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-otp-mfa-core/src/main/java/org/apereo/cas/otp/repository/credentials/OneTimeTokenCredentialDeviceManager.java