VirtualMachineOSImageOperationsExtensions.Delete Method (IVirtualMachineOSImageOperations, String, Boolean)
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
public static AzureOperationResponse Delete(
this IVirtualMachineOSImageOperations operations,
string imageName,
bool deleteFromStorage
)
public:
[ExtensionAttribute]
static AzureOperationResponse^ Delete(
IVirtualMachineOSImageOperations^ operations,
String^ imageName,
bool deleteFromStorage
)
static member Delete :
operations:IVirtualMachineOSImageOperations *
imageName:string *
deleteFromStorage:bool -> AzureOperationResponse
<ExtensionAttribute>
Public Shared Function Delete (
operations As IVirtualMachineOSImageOperations,
imageName As String,
deleteFromStorage As Boolean
) As AzureOperationResponse
Parameters
operations
Type: Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperationsReference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations.
imageName
Type: System.StringRequired. The name of the image to delete.
deleteFromStorage
Type: System.BooleanRequired. Specifies that the source blob for the image should also be deleted from storage.
Return Value
Type: Microsoft.Azure.AzureOperationResponse
A standard service response including an HTTP status code and request ID.
See Also
VirtualMachineOSImageOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top