Share via


IVirtualMachineOSImageOperations.DeleteAsync Method (String, Boolean, CancellationToken)

 

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)

Syntax

Task<AzureOperationResponse> DeleteAsync(
    string imageName,
    bool deleteFromStorage,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ DeleteAsync(
    String^ imageName,
    bool deleteFromStorage,
    CancellationToken cancellationToken
)
abstract DeleteAsync : 
        imageName:string *
        deleteFromStorage:bool *
        cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function DeleteAsync (
    imageName As String,
    deleteFromStorage As Boolean,
    cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)

Parameters

  • deleteFromStorage
    Type: System.Boolean

    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.

See Also

IVirtualMachineOSImageOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top