How can I delete all documents?
everlose opened this issue · comments
陈子云 commented
It seems that the API DELETE must receive an array parameter.
How can I delete all documents, I don't want to use ALL_DOCUMENTS() and traverse it.
Fergus McDowall commented
At the moment you have to do
// where 'db' is the name of your index
db.INDEX.STORE.clear()
(In the future it would be great to have this as a top-level function like db.FLUSH()
or similar)
陈子云 commented
At the moment you have to do
// where 'db' is the name of your index db.INDEX.STORE.clear()(In the future it would be great to have this as a top-level function like
db.FLUSH()
or similar)
Thanks
Fergus McDowall commented
👍👍