共用方式為


VirtualMachineDiskOperationsExtensions.DeleteDisk Method

Definition

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 Microsoft.Azure.AzureOperationResponse DeleteDisk (this Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations operations, string name, bool deleteFromStorage);
static member DeleteDisk : Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations * string * bool -> Microsoft.Azure.AzureOperationResponse
<Extension()>
Public Function DeleteDisk (operations As IVirtualMachineDiskOperations, name As String, deleteFromStorage As Boolean) As 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

Microsoft.Azure.AzureOperationResponse

A standard service response including an HTTP status code and request ID.

Applies to