code: public void beginDeleteById(String resourceId, String apiVersion) {
          beginDeleteByIdWithServiceResponseAsync(resourceId, apiVersion).toBlocking().single().body();
      }
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
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent