Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

dirRemove

dirRemove

Removes a directory.

Method of

File object

Syntax

int dirRemove( FileSpecObject dirToRemove [, boolean recursive] );

Parameters

The dirRemove method has the following parameters:

dirToRemove
A FileSpecObject representing the directory to be removed.
recursive
An optional boolean value indicating whether the remove operation is to be performed recursively (1) or not (0).

Returns

An integer error code. For a list of possible values, see Return Codes.

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, Fredchat, Rod Whiteley
 Last updated by: Sheppy,