Skip to main content
版本:v3

hmFS.remove(path)

删除文件

类型

(path: string) => result

参数

path

说明必填类型默认值
删除的文件路径string-

result

说明类型
操作结果,0 表示成功number

代码示例

const result = hmFS.remove('path/to/test_file.txt')
console.log(result)