VirtualMachineDiskOperationsExtensions.DeleteDisk Method (IVirtualMachineDiskOperations, String, Boolean)

 

Deletes the specified data or operating system disk from the user disk repository.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

<ExtensionAttribute>
Public Shared Function DeleteDisk (
	operations As IVirtualMachineDiskOperations,
	name As String,
	deleteFromStorage As Boolean
) As 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: Microsoft.Azure.AzureOperationResponse

An OperationResponse object that includes an HTTP status code and request ID.

For more information about deleting disks, see the following resources:

Return to top
Show: