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)
Syntax
public static AzureOperationResponse DeleteDisk(
this IVirtualMachineDiskOperations operations,
string name,
bool deleteFromStorage
)
public:
[ExtensionAttribute]
static AzureOperationResponse^ DeleteDisk(
IVirtualMachineDiskOperations^ operations,
String^ name,
bool deleteFromStorage
)
static member DeleteDisk :
operations:IVirtualMachineDiskOperations *
name:string *
deleteFromStorage:bool -> AzureOperationResponse
<ExtensionAttribute>
Public Shared Function DeleteDisk (
operations As IVirtualMachineDiskOperations,
name As String,
deleteFromStorage As Boolean
) As AzureOperationResponse
Parameters
operations
Type: Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperationsThe IVirtualMachineDiskOperations object that specifies the Virtual Machine disk operations.
- diskName
The name of the disk to delete.
deleteFromStorage
Type: System.BooleanIndicates 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.
Remarks
For more information about deleting disks, see the following resources:
See Also
VirtualMachineDiskOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top