/// <summary> /// Delete a volume /// </summary> /// <remarks> /// Delete the specified volume /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='accountName'> /// The name of the NetApp account /// </param> /// <param name='poolName'> /// The name of the capacity pool /// </param> /// <param name='volumeName'> /// The name of the volume /// </param> public static void Delete(this IVolumesOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName) { operations.DeleteAsync(resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); }
/// <summary> /// Deletes the volume. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='volumeContainerName'> /// The volume container name. /// </param> /// <param name='volumeName'> /// The volume name. /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> public static void Delete(this IVolumesOperations operations, string deviceName, string volumeContainerName, string volumeName, string resourceGroupName, string managerName) { operations.DeleteAsync(deviceName, volumeContainerName, volumeName, resourceGroupName, managerName).GetAwaiter().GetResult(); }