Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > FileSystem > deleteFolder

FileSystem.deleteFolder() method

Deletes a folder, including all of its contents. Behind the scenes is uses fs-extra.removeSync().

Signature:

static deleteFolder(folderPath: string): void;

Parameters

ParameterTypeDescription
folderPathstringThe absolute or relative path to the folder which should be deleted.

Returns:

void

Remarks

Does not throw if the folderPath does not exist.