VirtualMachineOSImageOperationsExtensions.DeleteAsync Method (IVirtualMachineOSImageOperations, String, Boolean)
The Delete OS Image operation deletes the specified OS image from your image repository. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157203.aspx for more information)
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
public static Task<AzureOperationResponse> DeleteAsync( this IVirtualMachineOSImageOperations operations, string imageName, bool deleteFromStorage )
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations
Reference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations.
- imageName
-
Type:
System.String
Required. The name of the image to delete.
- deleteFromStorage
-
Type:
System.Boolean
Required. Specifies that the source blob for the image should also be deleted from storage.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse>A standard service response including an HTTP status code and request ID.
Show: