happy-opfs
    Preparing search index...

    Function remove

    • Removes a file or directory at the specified path, similar to rm -rf. If the path doesn't exist, the operation succeeds silently.

      Parameters

      • path: string

        The absolute path of the file or directory to remove.

      Returns AsyncVoidIOResult

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

      1.0.0

      (await remove('/path/to/file-or-directory'))
      .inspect(() => console.log('Removed successfully'));