This page is Out of Date

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

removeRecursively

Summary

Deletes a directory and all of its contents, if any. In the event of an error [e.g. trying to delete a directory that contains a file that cannot be removed], some of the contents of the directory may be deleted. It is an error to attempt to delete the root directory of a filesystem.

Out of date; feature discontinued. See http://www.w3.org/TR/file-system-api.

Method of apis/filesystem/DirectoryEntryapis/filesystem/DirectoryEntry

Syntax

 DirectoryEntry.removeRecursively(successCallback, errorCallback);

Parameters

successCallback

Data-type
String

A callback that is called on success.

errorCallback

Data-type
String

(Optional)

A callback that is called when errors happen.

Return Value

No return value

Related specifications

W3C File API: Directories and System Specification
W3C Working Draft