Documentation Index

Fetch the complete documentation index at: /docs/llms.txt

Use this file to discover all available pages before exploring further.

Skip to main content
To delete a file, use Bun.file(path).delete().
delete-file.ts
// Delete a file
const file = Bun.file("path/to/file.txt");
await file.delete();

// Now the file doesn't exist
const exists = await file.exists();
// => false

See File I/O for more filesystem operations.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.