code: public Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (resourceProviderNamespace == null) {
              throw new IllegalArgumentException("Parameter resourceProviderNamespace is required and cannot be null.");
          }
          if (parentResourcePath == null) {
              throw new IllegalArgumentException("Parameter parentResourcePath is required and cannot be null.");
          }
          if (resourceType == null) {
              throw new IllegalArgumentException("Parameter resourceType is required and cannot be null.");
          }
          if (resourceName == null) {
              throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() 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.delete(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType());
      }
docs: Deletes a resource.
  
  @param resourceGroupName The name of the resource group that contains the resource to delete. The name is case insensitive.
  @param resourceProviderNamespace The namespace of the resource provider.
  @param parentResourcePath The parent resource identity.
  @param resourceType The resource type.
  @param resourceName The name of the resource to delete.
  @param apiVersion The API version to use for the operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request