Поделиться через


ElasticSanVolumeResource.Delete Method

Definition

Delete an Volume.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}
  • Operation Id: Volumes_Delete
  • Default Api Version: 2024-07-01-preview
  • Resource: ElasticSanVolumeResource
public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, Azure.ResourceManager.ElasticSan.Models.ElasticSanDeleteSnapshotsUnderVolume? deleteSnapshots = default, Azure.ResourceManager.ElasticSan.Models.ElasticSanForceDeleteVolume? forceDelete = default, Azure.ResourceManager.ElasticSan.Models.ElasticSanDeleteType? deleteType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Delete : Azure.WaitUntil * Nullable<Azure.ResourceManager.ElasticSan.Models.ElasticSanDeleteSnapshotsUnderVolume> * Nullable<Azure.ResourceManager.ElasticSan.Models.ElasticSanForceDeleteVolume> * Nullable<Azure.ResourceManager.ElasticSan.Models.ElasticSanDeleteType> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.Delete : Azure.WaitUntil * Nullable<Azure.ResourceManager.ElasticSan.Models.ElasticSanDeleteSnapshotsUnderVolume> * Nullable<Azure.ResourceManager.ElasticSan.Models.ElasticSanForceDeleteVolume> * Nullable<Azure.ResourceManager.ElasticSan.Models.ElasticSanDeleteType> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function Delete (waitUntil As WaitUntil, Optional deleteSnapshots As Nullable(Of ElasticSanDeleteSnapshotsUnderVolume) = Nothing, Optional forceDelete As Nullable(Of ElasticSanForceDeleteVolume) = Nothing, Optional deleteType As Nullable(Of ElasticSanDeleteType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

deleteSnapshots
Nullable<ElasticSanDeleteSnapshotsUnderVolume>

Optional, used to delete snapshots under volume. Allowed value are only true or false. Default value is false.

forceDelete
Nullable<ElasticSanForceDeleteVolume>

Optional, used to delete volume if active sessions present. Allowed value are only true or false. Default value is false.

deleteType
Nullable<ElasticSanDeleteType>

Optional. Specifies that the delete operation should be a permanent delete for the soft deleted volume. The value of deleteType can only be 'permanent'.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to