VirtualMachineDiskOperationsExtensions.DeleteDiskAsync Method (IVirtualMachineDiskOperations, String, Boolean)
Asynchronously deletes the specified data or operating system disk from the user disk repository.
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
<ExtensionAttribute> Public Shared Function DeleteDiskAsync ( operations As IVirtualMachineDiskOperations, name As String, deleteFromStorage As Boolean ) As Task(Of AzureOperationResponse)
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations
The IVirtualMachineDiskOperations object that specifies the Virtual Machine disk operations.
- diskName
The name of the disk to delete.
- deleteFromStorage
-
Type:
System.Boolean
Indicates whether the source blob for the disk should also be deleted from storage. true if the source blob should be deleted; otherwise, false.
Return Value
Type: System.Threading.Tasks.Task(Of AzureOperationResponse)An OperationResponse object that includes an HTTP status code and request ID.
For more information about deleting disks, see the following resources:
Show: