# File lib/chef_zero/endpoints/policy_group_policy_endpoint.rb, line 65 def delete(request) # Save the existing association. current_revision_id = parse_json(get_data(request)) # delete the association. delete_data(request) # return the full policy document at the no-longer-associated revision. policy_name = request.rest_path[5] policy_path = request.rest_path[0..1] + ["policies", policy_name, "revisions", current_revision_id] full_policy_doc = parse_json(get_data(request, policy_path)) full_policy_doc = ChefData::DataNormalizer.normalize_policy(full_policy_doc, policy_name, current_revision_id) return json_response(200, full_policy_doc) end