Skip to content

Deleting data

Auguste Rame edited this page Oct 6, 2019 · 2 revisions

Data is never actually deleted from the database file1, Instructions are appended to the file instructing the parser to ignore the data.

db.delete(id)

let db = new streamlet(path.join(__dirname, 'db.sl'))

async () => {
  await db.init()
  db.delete('hFkEXrkuRyGQAf8t7vzshw/0000000000')
}

1: As of now

Clone this wiki locally