codemelted.js Module
    Preparing search index...

    Function storage_remove

    • Removes a given entry from the module's local storage.

      Parameters

      • params: { key: string; type?: string }

        The named parameters.

        • key: string

          The key to remove.

        • Optionaltype?: string

          The storage to act upon.

      Returns Promise<void>

      Rejected promise represents an API violation.

      // To remove an element from storage.
      // Defaults to STORAGE_TYPE.Local
      await storage_remove({key: "cool"});
      // To specify type
      await storage_remove({type: STORAGE_TYPE.Session, key: "cool"});