Lingua

DataLakeFileSystemClient.DeleteAsync Method

Definition

The DeleteAsync(DataLakeRequestConditions, CancellationToken) operation marks the specified file system for deletion.

For more information, see Delete Container.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteAsync : Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteAsync (Optional conditions As DataLakeRequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

conditions
DataLakeRequestConditions

Optional DataLakeRequestConditions to add conditions on the deletion of this cofile systemntainer.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response on successfully marking for deletion.

Remarks

A RequestFailedException will be thrown if a failure occurs. If multiple failures occur, an AggregateException will be thrown, containing each failure instance.

When a file system is deleted, a file system with the same name can't be created for at least 30 seconds. The file system might not be available for more than 30 seconds if the service is still processing the request. While the file system is being deleted, attempts to create a file system of the same name fail with status code 409 (Conflict). The service indicates that the file system is being deleted. Operations on paths within the file system, including reads and writes, may continue to succeed for up to 30 seconds after the delete request is accepted. After this period, all operations on the file system and its paths fail with status code 404 (Not Found).

Applies to