IVirtualMachineOSImageOperations.DeleteAsync 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 instance As IVirtualMachineOSImageOperations
Dim imageName As String
Dim deleteFromStorage As Boolean
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of AzureOperationResponse)
returnValue = instance.DeleteAsync(imageName, deleteFromStorage, cancellationToken)
Syntax
'Declaration
Function DeleteAsync ( _
imageName As String, _
deleteFromStorage As Boolean, _
cancellationToken As CancellationToken _
) As Task(Of AzureOperationResponse)
Task<AzureOperationResponse> DeleteAsync (
string imageName,
bool deleteFromStorage,
CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ DeleteAsync (
String^ imageName,
bool deleteFromStorage,
CancellationToken cancellationToken
)
Task<AzureOperationResponse> DeleteAsync (
String imageName,
boolean deleteFromStorage,
CancellationToken cancellationToken
)
function DeleteAsync (
imageName : String,
deleteFromStorage : boolean,
cancellationToken : CancellationToken
) : Task<AzureOperationResponse>
Parameters
- imageName
The name of the image to delete.
- deleteFromStorage
Specifies that the source blob for the image should also be deleted from storage.
- cancellationToken
Cancellation token.
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
IVirtualMachineOSImageOperations Interface
IVirtualMachineOSImageOperations Members
Microsoft.WindowsAzure.Management.Compute Namespace