@Override
    public void deleteDuoSecurityUserDevice(final String username, final String deviceId) throws Exception {
        val userIdentifier = getDuoSecurityUserAccount(username, false).map(DuoSecurityUserAccount::getUserId).orElseThrow();
        val params = CollectionUtils.<String, String>wrap("uri", String.format("users/%s/phones/%s", userIdentifier, deviceId));
        params.put("method", HttpMethod.DELETE.name());
        executeAdminEndpoint(params);
    }
This is {@link DefaultDuoSecurityAdminApiService}.

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