VirtualMachineImageOperationsExtensions.Delete Method

Deletes the specified operating system image from the user image repository.

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

Usage

'Usage
Dim operations As IVirtualMachineImageOperations
Dim imageName As String
Dim deleteFromStorage As Boolean
Dim returnValue As OperationResponse

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

Syntax

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

Parameters

  • imageName
    The name of the image to delete.
  • deleteFromStorage
    Indicates whether the source blob for the image should also be deleted from storage. true if the source blob should be deleted; otherwise, false.

Return Value

An OperationResponse object that includes an HTTP status code and request ID.

Remarks

For more information about deleting images, see the following resources:

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 and Windows Server 2008

Target Platforms

See Also

Reference

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