anchor.diff:  -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, ?RELEASED_FILE_DELETE(IsLocalDeletion)).
  +    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) ->
  
positive.code:     try
          {ParentDoc, ParentCtx2} = file_ctx:get_file_doc_including_deleted(ParentCtx),
              case file_meta:is_deleted(ParentDoc) of
                  true -> remove_file(ParentCtx2, UserCtx, true, ?RELEASED_FILE_DELETE(IsLocalDeletion));
                  false -> ok
              end
      catch
          error:{badmatch, {error, not_found}} ->
  
negative.code:                 try
                      FileGuid = fslogic_uuid:uuid_to_guid(FileUuid),
                      FileCtx = file_ctx:new_by_guid(FileGuid),
                      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])
  