本页还没有译文
本页 3 段还没译成한국어,下面显示的是英文原文。Delete a file
还没翻译译自英文(bun.com)本页 3 段都还没译
The Bun.file() function accepts a path and returns a BunFile instance. Use the .delete() method to delete the file.
const path = "/path/to/file.txt";
const file = Bun.file(path);
await file.delete();See Bun.file().
AI 翻译查看英文原文