Delete a document

Deleting a document can be done via a document key and a table. This will throw if the document doesn't exist, if the document isn't a part of the specified table, or if the table doesn't exist.

await cookieDB.delete("table_name", "document_key");

We can also delete documents by query. This will throw if the table doesn't exist.

await cookieDB.deleteByQuery("table_name", "eq($name, 'CookieFan37')");