StorageFile.DeleteAsync StorageFile.DeleteAsync StorageFile.DeleteAsync StorageFile.DeleteAsync StorageFile.DeleteAsync Method

Definition

Overloads

DeleteAsync() DeleteAsync() DeleteAsync() DeleteAsync() DeleteAsync()

Deletes the current file.

DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption)

Deletes the current file, optionally deleting the item permanently.

DeleteAsync() DeleteAsync() DeleteAsync() DeleteAsync() DeleteAsync()

Deletes the current file.

public : IAsyncAction DeleteAsync()
IAsyncAction DeleteAsync() const;
public IAsyncAction DeleteAsync()
Public Function DeleteAsync() As IAsyncAction
Windows.Storage.StorageFile.deleteAsync().done( /* Your success and error handlers */ );

Returns

No object or value is returned by this method when it completes.

Remarks

This method uses StorageDeleteOption.default to determine whether the item is deleted permanently.

FileNotFoundException is thrown if the file does not exist..

See also

DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption) DeleteAsync(StorageDeleteOption)

Deletes the current file, optionally deleting the item permanently.

public : IAsyncAction DeleteAsync(StorageDeleteOption option)
IAsyncAction DeleteAsync(StorageDeleteOption option) const;
public IAsyncAction DeleteAsync(StorageDeleteOption option)
Public Function DeleteAsync(option As StorageDeleteOption) As IAsyncAction
Windows.Storage.StorageFile.deleteAsync(option).done( /* Your success and error handlers */ );

Parameters

option
StorageDeleteOption StorageDeleteOption StorageDeleteOption

A value that indicates whether to delete the item permanently.

Returns

No object or value is returned by this method when it completes.

See also