Skip to main content

Documentation Index

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

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

To synchronously delete a file with JSTime, use the unlinkSync function from the node:fs module. (Currently, there is no JSTime API for deleting files.)
import { unlinkSync } from "node:fs";

const path = "/path/to/file.txt";
unlinkSync(path);

To remove a file asynchronously, use the unlink function from the node:fs/promises module.
import { unlink } from "node:fs/promises";

const path = "/path/to/file.txt";
await unlink(path);