code: public Boolean removeFactor(long userId, long deviceId) throws OAuthSystemException, OAuthProblemException, URISyntaxException
      {
  		cleanError();
  		prepareToken();
  
  		URIBuilder url = new URIBuilder(settings.getURL(Constants.REMOVE_FACTOR_URL, userId, deviceId));
  
  		OneloginURLConnectionClient httpClient = new OneloginURLConnectionClient();
  		OAuthClient oAuthClient = new OAuthClient(httpClient);
  		OAuthClientRequest bearerRequest = new OAuthBearerClientRequest(url.toString())
  			.buildHeaderMessage();
  
  		Map<String, String> headers = getAuthorizedHeader();
  		bearerRequest.setHeaders(headers);
  
  		Boolean success = true;
  		OneloginOAuthJSONResourceResponse oAuthResponse = oAuthClient.resource(bearerRequest, OAuth.HttpMethod.DELETE, OneloginOAuthJSONResourceResponse.class);
  		if (oAuthResponse.getResponseCode() != 200) {
  			success = false;
  			error = oAuthResponse.getError();
  			errorDescription = oAuthResponse.getErrorDescription();
  		}
  		return success;
      }
docs: Remove an enrolled factor from a user.
  
  @param userId
  The id of the user.
  @param deviceId
  The device_id of the MFA device.
  
  @return Boolean True if action succeed
  
  @throws OAuthSystemException - if there is a IOException reading parameters of the httpURLConnection
  @throws OAuthProblemException - if there are errors validating the OneloginOAuthJSONResourceResponse and throwOAuthProblemException is enabled
  @throws URISyntaxException - if there is an error when generating the target URL at the URIBuilder constructor
  
  @see <a target="_blank" href="https://developers.onelogin.com/api-docs/1/multi-factor-authentication/remove-factor">Remove a Factor documentation</a>