IVirtualMachineDiskOperations::DeleteDiskAsync Method (String^, Boolean, CancellationToken)

 

Asynchronously 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)

Task<AzureOperationResponse^>^ DeleteDiskAsync(
	String^ name,
	bool deleteFromStorage,
	CancellationToken cancellationToken
)

Parameters

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.

cancellationToken
Type: System.Threading::CancellationToken

The cancellation token.

Return Value

Type: System.Threading.Tasks::Task<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: