# File lib/her/model/orm.rb, line 242 def destroy_existing(id, params = {}) request(params.merge(:_method => method_for(:destroy), :_path => build_request_path(params.merge(primary_key => id)))) do |parsed_data, response| data = parse(parsed_data[:data]) metadata = parsed_data[:metadata] response_errors = parsed_data[:errors] record = new(data.merge(:_destroyed => response.success?, :metadata => metadata)) record.response_errors = response_errors record end end