anchor.diff:                  try
                       FileGuid = fslogic_uuid:uuid_to_guid(FileUuid),
                       FileCtx = file_ctx:new_by_guid(FileGuid),
  -                    ok = remove_file(FileCtx, UserCtx, true, ?RELEASED_FILE_DELETE(true))
  +                    ok = remove_file(FileCtx, UserCtx, true, ?FINALIZE_DELETE(true))
                   catch
                       E1:E2 ->
                           ?warning_stacktrace("Cannot remove old opened file ~p: ~p:~p", [Doc, E1, E2])
  
positive.code: %% Macros defining modes of file deletions
  -define(LOCAL_DELETE, local_delete).
  -define(REMOTE_DELETE, remote_delete).
  -define(OPENED_FILE_DELETE, opened_file_delete).
  -define(RELEASED_FILE_DELETE(IsLocalDeletion), {released_file_delete, IsLocalDeletion}).
  
  %% @formatter:off
  -type delete_mode() :: ?LOCAL_DELETE | ?REMOTE_DELETE | ?OPENED_FILE_DELETE | ?RELEASED_FILE_DELETE(boolean()).
  %% @formatter:on
  
  %%%===================================================================
  
negative.code: -spec handle_release_of_deleted_file(file_ctx:ctx(), boolean()) -> ok.
  handle_release_of_deleted_file(FileCtx, IsLocalDeletion) ->
      UserCtx = user_ctx:new(?ROOT_SESS_ID),
      ok = remove_file(FileCtx, UserCtx, true, ?FINALIZE_DELETE(IsLocalDeletion)).
  
      -spec handle_file_deleted_on_synced_storage(file_ctx:ctx()) -> ok.
  handle_file_deleted_on_synced_storage(FileCtx) ->
  