def delete_design_doc(id, rev = nil)
      ddoc = design_docs[id.sub(/^_design\//, '')]
      return false unless ddoc
      path = Utils.build_query(ddoc.id, :rev => rev || ddoc.meta['rev'])
      res = __http_query(:view, :delete, path, nil, nil, nil, nil, nil)
      return true if res[:status] == 200
      val = MultiJson.load(res[:chunks].join)
      raise Error::View.new("delete_design_doc", val['error'])
    end
def delete_design_doc(id, rev = nil)
      ddoc = design_docs[id.sub(/^_design\//, '')]
      return false unless ddoc
      path = Utils.build_query(ddoc.id, :rev => rev || ddoc.meta['rev'])
      res = __http_query(:view, :delete, path, nil, nil, nil, nil, nil)
      return true if res[:status] == 200
      val = MultiJson.load(res[:chunks].join)
      raise Error::View.new("delete_design_doc", val['error'])
    end
Delete design doc with given id and revision.

 @since 1.2.0

 @param [String] id Design document id. It might have '_design/'
   prefix.

 @param [String] rev Document revision. It uses latest revision if
   +rev+ parameter is nil.

 @return [true, false]