anchor.diff:  delete_resource(ReqData, State) ->
   	case {proplists:get_value('user', wrq:path_info(ReqData)),proplists:get_value('stream', wrq:path_info(ReqData))} of
   		{UserId,undefined} ->
  -			case users:delete_streams_with_user_id(UserId) of
  +			case users:delete_streams_with_user_id(string:to_lower(UserId)) of
   				{error, {Code, Body}} -> 
   					ErrorString = api_help:generate_error(Body, Code),
   					{{halt, Code}, wrq:set_resp_body(ErrorString, ReqData), State};
   				{ok} ->
  -					{true,wrq:set_resp_body("{\"message\":\"All streams with user_id:" ++UserId++" are now deleted\"}",ReqData),State}
  +					{true,wrq:set_resp_body("{\"message\":\"All streams with user_id:" ++string:to_lower(UserId)++" are now deleted\"}",ReqData),State}
   			end;
   		{_,Id} ->
   			case delete_data_points_with_stream_id(Id) of 
  
positive.code: 			UserQuery = [],
  			UserDef = false;
  		UserId ->
  			UserQuery = "user_id:" ++ UserId,
  			UserDef = true
  		end,
  	FullQuery = lists:append(api_help:transform(URIQuery,UserDef),UserQuery),
  
negative.code: 							UserQuery = [],
  							UserDef = false;
  						UserId ->
  							UserQuery = "\"user_id\":\"" ++ string:to_lower(UserId) ++ "\"",
  							UserDef = true
  					end,
  					case UserDef of
  