GoodDB
    Preparing search index...
    • Delete multiple keys at once

      Parameters

      • this: GoodDB
      • keys: string[]

        An array of keys to delete

      • Optionaloptions: methodOptions

        The options to use

      Returns boolean | Promise<boolean>

      A promise if the driver is async, otherwise a boolean

      const db = new GoodDB(new JSONDriver({
      path: './database.json'
      }));
      db.deleteMany(['key1', 'key2']);
      const db = new GoodDB(new MongoDBDriver({
      uri: "..."
      }));
      await db.connect();
      await db.deleteMany(['key1', 'key2']);