anchor.diff:                  remove_auxiliary_documents(FileCtx6),
                   FileCtx7 = maybe_remove_deletion_link(FileCtx6, UserCtx, RemoveStorageFileResult),
                   maybe_try_to_delete_parent(FileCtx7, UserCtx, RemoveStorageFileResult, true);
  -            ?OPENED_FILE_DELETE ->
  +            ?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;
  -            ?RELEASED_FILE_DELETE(IsLocalDeletion) ->
  +            ?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),
  
positive.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, ?RELEASED_FILE_DELETE(IsLocalDeletion)).
  
      -spec handle_file_deleted_on_synced_storage(file_ctx:ctx()) -> ok.
  handle_file_deleted_on_synced_storage(FileCtx) ->
  
negative.code: 
  -spec handle_opened_file(file_ctx:ctx(), user_ctx:ctx(), delete_mode()) -> ok.
  handle_opened_file(FileCtx, UserCtx, DeleteMode) ->
      ok = remove_file(FileCtx, UserCtx, false, ?INIT_DELETE),
      {HandlingMethod, FileCtx2} = fslogic_delete:get_open_file_handling_method(FileCtx),
      FileCtx3 = custom_handle_opened_file(FileCtx2, UserCtx, DeleteMode, HandlingMethod),
      RemovalStatus = case DeleteMode of
  