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
                      FileGuid = fslogic_uuid:uuid_to_guid(FileUuid),
                      FileCtx = file_ctx:new_by_guid(FileGuid),
                      ok = remove_file(FileCtx, UserCtx, true, ?RELEASED_FILE_DELETE(true))
                  catch
                      E1:E2 ->
                          ?warning_stacktrace("Cannot remove old opened file ~p: ~p:~p", [Doc, E1, E2])
  
negative.code:                 remove_auxiliary_documents(FileCtx6),
                  FileCtx7 = maybe_remove_deletion_link(FileCtx6, UserCtx, RemoveStorageFileResult),
                  maybe_try_to_delete_parent(FileCtx7, UserCtx, RemoveStorageFileResult, true);
              ?INIT_DELETE ->
                  % TODO VFS-6114 maybe delete file_meta and auxiliary documents here?
                  FileCtx5 = delete_shares_and_update_parent_timestamps(UserCtx, FileCtx3),
                  delete_storage_sync_info(FileCtx5),
                  ok;
              ?FINALIZE_DELETE(IsLocalDeletion) ->
                  {FileDoc, FileCtx4} = file_ctx:get_file_doc_including_deleted(FileCtx3),
                  FileUuid = file_ctx:get_uuid_const(FileCtx4),
                  ok = fslogic_location_cache:delete_local_location(FileUuid),
  