# Datasources

Data sources serve as repositories for storing and managing all your data. They constitute an integral part of the ObX Historian web component. However, for the WebUI component to access data from a data source, it needs to be attached to an organization within the WebUI component.

{% hint style="info" %}
You need to attached at least one(1) datasource in your Organization before you can create your first dashboard.
{% endhint %}

## Attaching Datasource

{% hint style="warning" %}
Before attaching any datasource, you should have atleast one(1) existing datasource in the ObX Admin tool. Please see [here](https://obx-organization.gitbook.io/obx-r3-manual/backend-engineering/obx-backend-engineering#adding-datasource) to add datasource.
{% endhint %}

1. Open the ObX Admin Tool.
2. From the left bar menu, Go to `Organizations` -> `Name of the Organizations` -> `Datasources`
3. Right-click on `Datasources` -> `Attach Datasource`, this will open the Attach datasource window.
4. Select the Datasource you want to attach.
5. Click `OK`.

<figure><img src="https://1616126851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk102NjXt3SLqrvAU01VG%2Fuploads%2Fd4CYHLEEpwrgVrI8kpKw%2FAttaching%20Datasource.gif?alt=media&#x26;token=71af597b-f0c3-411f-ac29-d89bb5995068" alt=""><figcaption><p>Attaching Datasource</p></figcaption></figure>

## Removing Datasource

1. Open the ObX Admin Tool.
2. From the left bar menu, Go to `Organizations` -> `Name of the Organizations` -> `Datasources`
3. Right-click on the Datasource name you want to delete and select -> `Remove Datasource`
4. Click `OK`.

{% hint style="warning" %}
When you remove the Datasource from the Organization, it doesn't result in the deletion of the datasource or its associated data. Instead, it simply disconnects the datasource from the specified Organization, preventing access to its resources. If you intend to delete the datasource entirely, you can do so by following these [steps](https://obx-organization.gitbook.io/obx-r3-manual/backend-engineering/obx-backend-engineering#deleting-a-datasource).
{% endhint %}

<figure><img src="https://1616126851-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk102NjXt3SLqrvAU01VG%2Fuploads%2FO6O15FGnjIq2Dzc9y87R%2FRemoving%20Datasource.gif?alt=media&#x26;token=9320924f-1d93-4bc5-b899-f74e14595b05" alt=""><figcaption><p>Removing attached Datasource</p></figcaption></figure>
