1.

How Can You Delete A Document In Pouchdb?

Answer»

The db.remove() method is used to delete the document created in PouchDB database. In this method, id and _rev are to be passed to delete an EXISTING document as shown in the FOLLOWING CODE. This method accepts an optional callback FUNCTION. The complete document can also be passed instead of id and _rev.

Syntax: db.remove( docId, docRev, [callback] ) 

The db.remove() method is used to delete the document created in PouchDB database. In this method, id and _rev are to be passed to delete an existing document as shown in the following code. This method accepts an optional callback function. The complete document can also be passed instead of id and _rev.

Syntax: db.remove( docId, docRev, [callback] ) 



Discussion

No Comment Found