code: public Observable<Object> beginDeleteAsync(String resourceGroupName, String resourceName) {
          return beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<Object>, Object>() {
              @Override
              public Object call(ServiceResponse<Object> response) {
                  return response.body();
              }
          });
      }
docs: Delete an IoT hub.
  Delete an IoT hub.
  
  @param resourceGroupName The name of the resource group that contains the IoT hub.
  @param resourceName The name of the IoT hub.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the Object object