Skip to content

View deleted documents

Benoit Chesneau edited this page Jun 25, 2013 · 1 revision

The option included_deleted can be added to design doc options. If true all deleted documents will also be passed to a view.

This option is useful when you want to list deleted documents or replicated deleted documents to delete them on the target when you are using the View-based replication.

Note: if you want to map deleted documents against some patrams (when used for a replication for example), don't use the DELETE api, instead PUT a docment with the property _deleted: true and the properties you want to map in your view.

Clone this wiki locally