code: public Observable<ServiceResponse<Void>> deleteByIdWithServiceResponseAsync(String resourceId, String apiVersion) {
          if (resourceId == null) {
              throw new IllegalArgumentException("Parameter resourceId is required and cannot be null.");
          }
          if (apiVersion == null) {
              throw new IllegalArgumentException("Parameter apiVersion is required and cannot be null.");
          }
          Observable<Response<ResponseBody>> observable = service.deleteById(resourceId, apiVersion, this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType());
      }
docs: Deletes a resource by ID.
  
  @param resourceId The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}
  @param apiVersion The API version to use for the operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request