anchor.diff:                                         Record#cache_controller{last_action_time = os:timestamp()}
                                      end,
                                      update(Level, Uuid, UpdateFun2),
  -                                   case datastore:get(Level, ModelName, Key) of
  -                                       {ok, SavedValue} ->
  -                                           {ok, save, [SavedValue]};
  -                                       {error, {not_found, _}} ->
  -                                           ok;
  -                                       GetError ->
  -                                           {get_error, GetError}
  +                                   case Op of
  +                                       delete ->
  +                                           case datastore:get(Level, ModelName, Key) of
  +                                               {ok, SavedValue} ->
  +                                                   {ok, save, [SavedValue]};
  +                                               {error, {not_found, _}} ->
  +                                                   ok;
  +                                               GetError ->
  +                                                   {get_error, GetError}
  +                                           end;
  +                                       _ ->
  +                                           case datastore:get(Level, ModelName, Key) of
  +                                               {ok, SavedValue} ->
  +                                                   {ok, save, [SavedValue]};
  +                                               {error, {not_found, _}} ->
  +                                                   {ok, delete, [Key, ?PRED_ALWAYS]};
  +                                               GetError ->
  +                                                   {get_error, GetError}
  +                                           end
                                      end;
                                  _ ->
                                      {error, not_last_user}
  
positive.code:         end,
          ok
      catch
          E1:E2 ->
              ?error_stacktrace("Error in cache_controller end_disk_op. Args: ~p. Error: ~p:~p.",
                  [{Uuid, Owner, ModelName, Op, Level}, E1, E2]),
  
negative.code:             Ans = case ToDo of
                        {ok, NewMethod, NewArgs} ->
                            FullArgs = [ModelConfig | NewArgs],
                            CallAns = worker_proxy:call(datastore_worker, {driver_call,
                                datastore:driver_to_module(?PERSISTENCE_DRIVER), NewMethod, FullArgs}, ?DISK_OP_TIMEOUT),
                            {op_change, NewMethod, CallAns};
                        ok ->
                            FullArgs = [ModelConfig | Args],
                            worker_proxy:call(datastore_worker, {driver_call,
  