VirtualMachineDiskOperationsExtensions.DeleteDiskAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Delete Disk operation deletes the specified data or operating system disk from your image repository. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157200.aspx for more information)
public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> DeleteDiskAsync (this Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations operations, string name, bool deleteFromStorage);
static member DeleteDiskAsync : Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations * string * bool -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function DeleteDiskAsync (operations As IVirtualMachineDiskOperations, name As String, deleteFromStorage As Boolean) As Task(Of AzureOperationResponse)
Parameters
- operations
- IVirtualMachineDiskOperations
Reference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations.
- name
- String
Required. The name of the disk to delete.
- deleteFromStorage
- Boolean
Required. Specifies that the source blob for the disk should also be deleted from storage.
Returns
A standard service response including an HTTP status code and request ID.