Method: Cloudant::Client#delete_docs
- Defined in:
- lib/cloudant/client.rb
#delete_docs(docs_array) ⇒ Object
Requires the original doc including id and rev fields. Accepts and array of docs. Unlike :delete_doc, this doesn’t make a request to get the docs beforehand and won’t accept just ids.
186 187 188 189 |
# File 'lib/cloudant/client.rb', line 186 def delete_docs(docs_array) docs_array.each { |doc| doc["_deleted"] = true } bulk_docs(docs_array) end |