happy-opfs
    Preparing search index...

    Function removeSync

    • Synchronous version of remove. Removes a file or directory at the specified path.

      Parameters

      • path: string

        The absolute path of the file or directory to remove.

      Returns VoidIOResult

      A VoidIOResult indicating success or failure.

      remove for the async version.

      1.1.0

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