anchor.diff:  remove_link(AutocleaningId, SpaceId) ->
       Ctx = ?CTX#{scope => SpaceId},
       TreeId = oneprovider:get_provider_id(),
  -    ok = datastore_model:delete_links(Ctx, ?LINK, TreeId, AutocleaningId).
  +    ok = datastore_model:delete_links(Ctx, space_link_root(SpaceId), TreeId, AutocleaningId).
   
   %%-------------------------------------------------------------------
   %% @doc
  
positive.code: %% datastore_model callbacks
  -export([get_ctx/0, get_record_struct/1, get_record_version/0]).
  
  -define(LINK, <<"AUTOCLEANING_LINK">>).
  
  -define(CTX, #{
      model => ?MODULE,
  
negative.code:             {threshold, integer}
          ]}}
      ]}.
  %%-------------------------------------------------------------------
  %% @private
  %% @doc
  %% Returns links tree root for given space.
  %% @end
  %%-------------------------------------------------------------------
  -spec space_link_root(od_space:id()) -> binary().
  space_link_root(SpaceId) ->
      <<?LINK_PREFIX/binary, SpaceId/binary>>.
  