OSRS Plugin API
    Preparing search index...

    Function clear

    • Clears out all key-value pair entries for the current plugin in the internal database and invokes a callback.

      Parameters

      • callback: clearCallback

        The callback function that is invoked with a bool representing whether the clear was successful.

      Returns void

      osrs.Persistence.clear(
      function(ok)
      if ok then
      osrs.print("Cleared all entries for the plugin!")
      else
      osrs.print("Clear failed.")
      end
      end
      )