Share via


VirtualMachineOSImageOperationsExtensions.Delete Method

The Delete OS Image operation deletes the specified OS image from your image repository. (see https://msdn.microsoft.com/en-us/library/windowsazure/jj157203.aspx for more information)

Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Usage

'Usage
Dim operations As IVirtualMachineOSImageOperations
Dim imageName As String
Dim deleteFromStorage As Boolean
Dim returnValue As AzureOperationResponse

returnValue = VirtualMachineOSImageOperationsExtensions.Delete(operations, imageName, deleteFromStorage)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Delete ( _
    operations As IVirtualMachineOSImageOperations, _
    imageName As String, _
    deleteFromStorage As Boolean _
) As AzureOperationResponse
[ExtensionAttribute] 
public static AzureOperationResponse Delete (
    IVirtualMachineOSImageOperations operations,
    string imageName,
    bool deleteFromStorage
)
[ExtensionAttribute] 
public:
static AzureOperationResponse^ Delete (
    IVirtualMachineOSImageOperations^ operations, 
    String^ imageName, 
    bool deleteFromStorage
)
/** @attribute ExtensionAttribute() */ 
public static AzureOperationResponse Delete (
    IVirtualMachineOSImageOperations operations, 
    String imageName, 
    boolean deleteFromStorage
)
ExtensionAttribute 
public static function Delete (
    operations : IVirtualMachineOSImageOperations, 
    imageName : String, 
    deleteFromStorage : boolean
) : AzureOperationResponse

Parameters

  • operations
    Reference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations.
  • imageName
    Required. The name of the image to delete.
  • deleteFromStorage
    Required. Specifies that the source blob for the image should also be deleted from storage.

Return Value

A standard service response including an HTTP status code and request ID.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

VirtualMachineOSImageOperationsExtensions Class
VirtualMachineOSImageOperationsExtensions Members
Microsoft.WindowsAzure.Management.Compute Namespace