How to delete record or document from TinyDB
Example of DB:
{"1" : {"id_key" : "xxx", "params" : {} } },
{"2" : {"id_key" : "yyy", "params" : {} } },
I want to delete "1"
if id_key=='xxx'
On TinyDB tutorial code below is suggested. How to complete it to delete record/document ?
db.update(delete('key1'), where('key') == 'value')