A newer version of this documentation is available.

View Latest

Removing documents

Over the lifespan of your database, you will need to remove documents.
cb.remove(docid)

Removing documents can be done using the remove() function.

The removal operation can optionally be supplied with a CAS value, ensuring that if the document has since been modified by another client instance, the removal operation will fail.