---
title: "What does a library need after you change a data source?"
description: "What happens to a library's index, and what you need to do, after you rename a data source, change its connection settings, delete it, or add or remove a library's source folders"
canonical_url: "https://docs.ardge.com/en/knowledge/doclake/edit-data-source"
---
# What does a library need after you change a data source?

> What happens to a library's index, and what you need to do, after you rename a data source, change its connection settings, delete it, or add or remove a library's source folders

## Short answer

- **Rename only**: libraries aren't affected. Nothing to do
- **Change the connection settings** (IP address, username, password, or shared folder): DocLake doesn't reindex automatically. For each library that uses this data source, check on its **Settings** tab that the source folders are still correct, then run **Reindex** manually
- **Delete the data source**: not possible while a library uses it
- **Remove a source folder from a library**: the folder's documents are deleted from the library at once. Until the search index is rebuilt, the library can't be searched or used for AI Q&A

## Details

### Change a data source's connection settings

In **Data Source Connector**, click **Edit** on the data source. If you change the **IP Address**, **Username**, or **Shared Folder**, you must enter the **Password** again. If you change only the **Name**, you can leave the password empty.

If a library is using this data source, the page warns you before saving: "**This data source is used by the following libraries: <libraries>. After saving these changes, you'll need to update the folder settings for these libraries and manually trigger a reindex. Do you want to continue?**"

After you save, DocLake checks the connection again, and the data source's **Status** shows **Checking** first. Then, for each affected library:

1. Open the library's **Settings** tab and check that every folder under **Source Folders** can be read. A folder that can't be read shows "**Unable to read this folder.**"
2. Remove the folders that can't be read, or choose new ones, then click **Save**
3. Click **Reindex**

### Delete a data source

In **Data Source Connector**, click **Delete** on the data source. If any library has a source folder that uses it, you can't delete it, and the page shows "**This data source is used by "<library>" and cannot be deleted.**" When several libraries use it, the message names one of them and the total.

First delete those libraries, or remove the folders from this data source on each library's **Settings** tab, then delete the data source. Deletion can't be undone, and you can no longer create libraries with this connection.

### Add or remove a library's source folders

On the library's **Settings** tab, add or remove folders under **Source Folders**, then click **Save**:

| Change | Result |
| --- | --- |
| Add a folder | Indexed right away or at the next scheduled sync, depending on what you choose in the confirmation dialog when saving. See below |
| Remove a folder | The folder's documents are deleted from the library at once. The original files on the NAS are not affected. Any index task in progress is canceled |
| Folders you keep | Not affected |

When the source folders change, the page asks before saving whether to reindex now:

- With **Sync Schedule** enabled, it shows "**Source folders have changed. Do you want to reindex now? If you skip, the folders will be rescanned at the next scheduled sync.**" Click **Reindex Now** to cancel running and queued tasks and start a new sync, or click **Skip** to wait for the next scheduled sync
- With **Sync Schedule** not enabled, it shows "**The new source folders will be reindexed right after saving. Do you want to continue?**" Click **Save** to start the sync right away

<warning>

**After you remove an indexed folder, the library can't be searched for a while:**

DocLake rebuilds this library's search index in the background. Until it finishes, users who search the library see "**Source folders were just removed from this library and its search index is being rebuilt. Search is unavailable until it finishes; please try again shortly.**" AI Q&A is unavailable too. Change source folders during off-peak hours.

</warning>

Keep at least one source folder. Folders from the same data source can't contain each other. For example, you can't select both `Contracts` and `Contracts/2026`.

## How to check

1. Go to **Data** → **Data Source Connector** and check that the data source's **Status** is **Available**
2. Go to **Data** → **Library**. The **Data Source** column shows the data source each library uses
3. Open the library's **Settings** tab. The **Data Source** section shows the status of each data source: **Available**, **Disconnected**, or **Checking**

![The Settings tab of a NAS library, showing the data source status and source folders](https://docs.ardge.com/screenshots/knowledge/en/doclake/edit-data-source/view-1.webp)

## Related articles

- [Connect a NAS shared folder as a data source](https://docs.ardge.com/en/knowledge/doclake/nas-data-source)
- [Reindex and cancel indexing](https://docs.ardge.com/en/knowledge/doclake/indexing/resync)
- [Set a library's sync schedule](https://docs.ardge.com/en/knowledge/doclake/sync-schedule)


## Sitemap

See the full [sitemap](https://docs.ardge.com/sitemap.md) for all pages.
