def __delitem__(self, id):
        resource = _doc_resource(self.resource, id)
        status, headers, data = resource.head()
        resource.delete_json(rev=headers['etag'].strip('"'))
Replace items with a different item.
dataset/ETHPy150Open djc/couchdb-python/couchdb/client.py/Database.__delitem__--crossover with--dataset/ETHPy150Open edgewall/trac/trac/ticket/tests/batch.py/BatchModifyTestCase.test_change_list_replace_items_with_item