Skip to main content
The Bun.file() function accepts a path and returns a BunFile instance. Use the .delete() method to delete the file.

See Docs > API > File I/O for complete documentation of Bun.file().