Skip to main content
Version: v2

hmFS.remove(path)

Delete file

Type​

(path: string) => result

Parameters​

path​

DescriptionRequiredTypeDefault
Deleted file pathyesstring-

result​

DescriptionType
The result of the operation, 0 means successnumber

Code example​

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