《鸿蒙开发-答案之书》删除一个文件 很简单,直接调用系统的api /** * 删除一个文件*/ static delFile(filePath: string) { if (filePath) { fileIo.unlinkSync(filePath) } }