Home > @infiniteobjects/core-library-node > FileSystem > deleteFolder
Delete files and folders using globs, It also protects you against deleting the current working directory and above. - Think rm -rf
.
Signature:
static deleteFolder(patterns: string | readonly string[], options?: IDeleteFolderOptions): Promise<string[]>;
Parameter | Type | Description |
---|---|---|
patterns | string | readonly string[] | |
options | IDeleteFolderOptions | (Optional) |
Returns:
Promise<string[]>
The deleted paths.