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
Parameter | Type | Description |
---|---|---|
folderPath | string | The absolute or relative path to the folder which should be deleted. |
Returns:
void
Remarks
Does not throw if the folderPath does not exist.