# File lib/chef/data_bag.rb, line 156 def cdb_destroy removed = @couchdb.delete("data_bag", @name, @couchdb_rev) rs = @couchdb.get_view("data_bags", "entries", :include_docs => true, :startkey => @name, :endkey => @name) rs["rows"].each do |row| row["doc"].couchdb = couchdb row["doc"].cdb_destroy end removed end