def destroy(element, changeset)
      element.changeset = changeset.id
      response = delete("/#{element.type.downcase}/#{element.id}", :body => element.to_xml) unless element.id.nil?
      response.to_i # New version number
    end
def destroy(element, changeset)
      element.changeset = changeset.id
      response = delete("/#{element.type.downcase}/#{element.id}", :body => element.to_xml) unless element.id.nil?
      response.to_i # New version number
    end
Deletes the given element using API write access.

 @param [Rosemary::Element] element the element to be created
 @param [Rosemary::Changeset] changeset the changeset to be used to wrap the write access.
 @return [Fixnum] the new version of the deleted element.