happy-opfs
    Preparing search index...

    Function deleteTemp

    • Deletes the entire temporary directory (/tmp) and all its contents.

      Warning: When writing a ReadableStream to a new file, writeFile uses a temporary file in /tmp before moving it to the target path. Calling deleteTemp() during such operations may cause the write to fail. Ensure no stream writes are in progress before calling this function.

      Returns AsyncVoidIOResult

      A promise that resolves to an AsyncVoidIOResult indicating success or failure.

      1.7.0

      • pruneTemp for selective cleanup
      • remove for general file/directory removal
      (await deleteTemp())
      .inspect(() => console.log('Temporary directory deleted'));