Delen via


FileShareResource.Delete(WaitUntil, String, String, CancellationToken) Method

Definition

Deletes specified share under its account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}
  • Operation Id: FileShares_Delete
  • Default Api Version: 2023-05-01
  • Resource: FileShareResource
public virtual Azure.ResourceManager.ArmOperation Delete (Azure.WaitUntil waitUntil, string xMsSnapshot = default, string include = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Delete : Azure.WaitUntil * string * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.Delete : Azure.WaitUntil * string * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function Delete (waitUntil As WaitUntil, Optional xMsSnapshot As String = Nothing, Optional include As String = 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.

xMsSnapshot
String

Optional, used to delete a snapshot.

include
String

Optional. Valid values are: snapshots, leased-snapshots, none. The default value is snapshots. For 'snapshots', the file share is deleted including all of its file share snapshots. If the file share contains leased-snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included all of its file share snapshots (leased/unleased). For 'none', the file share is deleted if it has no share snapshots. If the file share contains any snapshots (leased or unleased), the deletion fails.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to