assets/js/lib/jquery.couch.js
function(docs, options){
          docs.docs = $.each(
            docs.docs, function(i, doc){
              doc._deleted = true;
            }
          );
          $.extend(options, {successStatus: 201});
          ajax({
              type: "POST",
              url: this.uri + "_bulk_docs" + encodeOptions(options),
              data: toJSON(docs)
            },
            options,
            "The documents could not be deleted"
          );
        }
function(docs, options){
          docs.docs = $.each(
            docs.docs, function(i, doc){
              doc._deleted = true;
            }
          );
          $.extend(options, {successStatus: 201});
          ajax({
              type: "POST",
              url: this.uri + "_bulk_docs" + encodeOptions(options),
              data: toJSON(docs)
            },
            options,
            "The documents could not be deleted"
          );
        }
function ( docs , options ) { docs . docs = $ . each ( docs . docs , function ( i , doc ) { doc . _deleted = true ; } ) ; $ . extend ( options , { successStatus : 201 } ) ; ajax ( { type : "POST" , url : this . uri + "_bulk_docs" + encodeOptions ( options ) , data : toJSON ( docs ) } , options , "The documents could not be deleted" ) ; }
Remove a set of documents
@see <a href="http://techzone.couchbase.com/sites/default/files/
uploads/all/documentation/couchbase-api-db.html#couchbase-api-db_
db-bulk-docs_post">docs for /db/_bulk_docs</a>
@param {String[]} docs List of document id's to remove
@param {ajaxSettings} options <a href="http://api.jquery.com/
jQuery.ajax/#jQuery-ajax-settings">jQuery ajax settings</a>
Remove a set of documents