title: CouchDB - Views not being updated after delete
body: <p>I have a view similar to this (a contrived example):</p>
  
  <blockquote>
    <p>function(doc) {<br>
     if (doc.attrib) {
      emit([doc.attrib],doc._id) 
     }<br>
    }</p>
  </blockquote>
  
  <p>Everything works as expected until the data is deleted. I get this crazy scenario where there is no data in the actual database (confirmed via _all_docs and _changes run on curl as well as  all_documents on Futon). However the view still yields data (again on both curl and Futon).</p>
  
  <p>The delete comprises Bulk delete and purge operations via ektorp. Running _changes after each confirms these work as expected. re-creating the view makes it reflect the true state of the documents in the DB.</p>
  
  <p>Have I missed something obvious here or are views in CouchDB only incremental?</p>