Skip to content

@longmo-utils/node / remove

Function: remove()

ts
function remove(filePath): Promise<void>;

递归删除文件或目录

Parameters

ParameterTypeDescription
filePathstring文件或目录路径

Returns

Promise<void>

Example

ts
await remove('./temp')

Released under the MIT License.