Skip to main content
FolderInformation.DeleteAsync(StorageDeleteOption) | deleteAsync(StorageDeleteOption) method

Applies to Windows only

Deletes the current folder, optionally moving the deleted folder to the recycle bin.

Syntax


folderInformation.deleteAsync(option).done( /* Your success and error handlers */ );

public IAsyncAction DeleteAsync(
  StorageDeleteOption option
)

Public Function DeleteAsync(
  option As StorageDeleteOption 
) As IAsyncAction

public:
IAsyncAction^ DeleteAsync(
  StorageDeleteOption option
)

Parameters

option

Type: StorageDeleteOption

A value that specifies whether to move the deleted folder to the recycle bin.

Return value

Type: IAsyncAction

No object or value is returned when this method completes.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Storage.BulkAccess
Windows::Storage::BulkAccess [C++]

Metadata

Windows.winmd

See also

FolderInformation
DeleteAsync