anchor.diff:  -export([
   	init/2, allowed_methods/2, malformed_request/2, resource_exists/2,
   	content_types_provided/2, read/2,
  -	valid_content_headers/2, is_conflict/2, content_types_accepted/2, write/2]).
  +	valid_content_headers/2, is_conflict/2, content_types_accepted/2, write/2,
  +	delete_resource/2]).
   
   %%====================================================================
   %% ALL
  
positive.code: 	DbName = req_helper:get_db_name(Req),
  	{not cluster:is_db_everywhere(DbName, Hosts), Req, State}.
  
  resource_exists(Req=#{method := <<"GET">>}, State) ->
  	DbName = req_helper:get_db_name(Req),
  	Hosts = cluster:get_hosts(),
  	Key = req_helper:get_record_key(Req),
  
negative.code: %%====================================================================
  %% DELETE
  %%====================================================================
  delete_resource(Req, State) ->
  	DbName = req_helper:get_db_name(Req),
  	Key = req_helper:get_record_key(Req),
  	Hosts = cluster:get_hosts(),
  	TargetHost = select_host_for_key(Key, Hosts),
  	remove_record(TargetHost, DbName, Key),
  	{true, Req, State}.
  
  %%====================================================================
  %% Internal functions
  %%====================================================================
  remove_record(TargetHost, DbName, Key) ->
  	rpc:call(TargetHost, db_manager, do, [
  		DbName, fun db_server:delete/2, [Key, db]]),
  	ok.
  
  record_to_json(Value) ->
  	jiffy:encode({[{value, Value}]}).
  
  