164
164
% DELETE /_config/Section/Key
165
165
handle_config_req(#httpd{method='DELETE',path_parts=[_,Section,Key]}=Req) ->
166
166
ok = couch_httpd:verify_is_server_admin(Req),
167
168
case couch_config:get(Section, Key, null) of
169
170
throw({not_found, unknown_config_value});
172
couch_config:delete(Section, Key, Persist),
172
173
send_json(Req, 200, list_to_binary(OldValue))
174
175
handle_config_req(Req) ->