code: public ApiSuccessResponse deletePersonalFavorite(String id, String type) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = deletePersonalFavoriteWithHttpInfo(id, type);
          return resp.getData();
      }
docs: Delete a target
  Delete the target from the agent&#39;s personal favorites.
  @param id The ID of the target. (required)
  @param type The type of target. (required)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body