﻿# Open WebUI directory sync mirrors deletions as well as new files

Understand Open WebUI directory synchronization as a content mirror, including deleted files, hidden-file exclusions, read-only change previews and indexing completion.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-openwebui-directory-sync-diff-cleanup/
Language: en

## Decide whether the source folder is authoritative

A team wants its knowledge base to follow a documentation folder. That is different from preserving every document ever uploaded. A mirror can remove destination entries when corresponding local files disappear. Before choosing synchronization, decide whether the selected folder is the complete intended source or merely a convenient subset copied onto one person's computer.

## Understand what the browser action compares

The [knowledge guide](https://docs.openwebui.com/features/workspace/knowledge/) describes Sync directory as comparing file paths and content hashes. New and modified files are uploaded; unchanged files are left alone; deleted local files are removed from the knowledge base during cleanup. Folder structure is mirrored and hidden files are skipped. A filename that remains unchanged is therefore insufficient to establish unchanged content, while an unchanged hash avoids unnecessary reprocessing.

## Preview a meaningful source difference

The [oikb companion guide](https://docs.openwebui.com/ecosystem/knowledge-base-sync/) describes a dry-run preview and a read-only manifest diff. Use such a preview when planning a real synchronization, especially when a source folder has moved or become temporarily incomplete. Review removals as well as additions. A source collection that unexpectedly enumerates fewer files should not automatically be accepted as an instruction to shrink the shared corpus.

## Distinguish selection from continuous watching

The in-app action runs in the browser over a chosen local folder. The companion supports additional sources and scheduled or event-driven workflows. Selecting a directory once does not establish that future edits will automatically propagate. Identify which process would perform a later run and whether it is operating; a familiar folder name in the interface is not a freshness guarantee.

## Wait for the resulting file processing

The [API reference](https://docs.openwebui.com/reference/api-endpoints/) separates upload acceptance from completed extraction and embedding. A successful transfer can precede searchable text. When interpreting a sync report, keep file reconciliation and indexing readiness distinct. After a meaningful source edit, verify the corresponding indexed passage before treating a new answer as evidence that synchronization finished end to end.

## Preserve the source-to-answer relationship

Keep the selected source, reviewed difference, completion state, and a changed passage in the update note. The [stale-citation guide](/journal/rag-document-updates-stale-chunk-citations/) explains why old passages can survive an incomplete update. [Task contracts](/journal/learn-codex-task-contract/) help specify whether the goal is mirroring or additive collection. This guide explains the workflow and performs no synchronization or deletion.
