Module: Couch::BulkRequest::Delete
- Included in:
- Server
- Defined in:
- lib/couch.rb
Instance Method Summary collapse
Instance Method Details
#bulk_delete(database, docs) ⇒ Object
210 211 212 213 214 215 216 |
# File 'lib/couch.rb', line 210 def bulk_delete(database, docs) docs.each do |doc| doc[:_deleted]=true end json = {:docs => docs}.to_json post("/#{database}/_bulk_docs", json) end |