GoodDB
    Preparing search index...
    • Delete a key

      Parameters

      Returns boolean | Promise<boolean>

      A promise if the driver is async, otherwise a boolean

      const db = new GoodDB(new JSONDriver({
      path: './database.json'
      }));
      db.delete('key');
      const db = new GoodDB(new MongoDBDriver({
      uri: "..."
      }));
      await db.connect();
      await db.delete('key');