/// <summary> /// Delete product. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.ApiManagement.IProductsOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='serviceName'> /// Required. The name of the Api Management service. /// </param> /// <param name='pid'> /// Required. Identifier of the product. /// </param> /// <param name='etag'> /// Required. ETag. /// </param> /// <param name='deleteSubscriptions'> /// Required. Delete existing subscriptions to the product ot not. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IProductsOperations operations, string resourceGroupName, string serviceName, string pid, string etag, bool deleteSubscriptions) { return(operations.DeleteAsync(resourceGroupName, serviceName, pid, etag, deleteSubscriptions, CancellationToken.None)); }