# Edit, delete a dataset

Now that you have datasets in the DataHub, you can edit, duplicate and switch the storage type of a dataset.

## Edit a dataset

Once you have created a dataset, you will still of course be able to edit it.

To edit a dataset:

1. Click on the "edit" button of the dataset you want to edit.

   <figure><img src="https://1809014303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxYYf1KpgarKMgMsDCrw%2Fuploads%2Fgit-blob-6daa65c0cc9b82f845a6f5af6783bdcf5557c8ab%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Edit the pipeline of your dataset, and click on "Save".
3. You can change the storage type of the dataset if needed, and click again on "Save" or "Save and refresh"

{% hint style="info" %}
**Note**

You can also save the dataset you're editing as a new one by clicking on the "Save as new" button within the YouPrep window. Thus, a new dataset considering your changes will be created, and the old dataset will remain unchanged.
{% endhint %}

{% hint style="warning" %}
**Limitation**

Datasets generated by the import of a file are not editable.
{% endhint %}

## Delete a dataset

To delete a dataset:

* Go on the action menu of the dataset (3 dots on the right), and click on "Delete"
* Confirm the deletion of the connector. If the datasets is used by other datasets or visualization, you will have a warning message and be able to select child datasets that you would like to delete simultaneously.

## Switch storage

You have created a dataset that is Stored or Live, and you would like to change the storage type ... you can do it in a few clicks:

1. Go to the action menu of the dataset, and click on "Switch storage"

   <figure><img src="https://1809014303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxYYf1KpgarKMgMsDCrw%2Fuploads%2Fgit-blob-d1940a7ce861c6e4fc867e8200af306fcc27f563%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Select your new storage type and click on Save.

## Rename a dataset

To rename a dataset, click on the three dot menu and choose the `rename` option, a modal will opened to allow you to change the name of a dataset.

## Other options for datasets

For all datasets you can :

* add permissions on the dataset
* For stored datasets, you can
  * refresh datasets
  * add index to optimize performances

{% hint style="info" %}
**Note**

You can't switch a Live dataset into a Stored dataset if it uses a variable.
{% endhint %}

{% hint style="warning" %}
**Warning**

Switching a Live dataset for which its parent(s) dataset(s) has **permissions** applied, to a Stored dataset will cancel the application of those permissions. You will have to define the permissions again on your dataset if you need to secure access to the data.
{% endhint %}

{% hint style="info" %}
**Note**

Changing the storage of a dataset can affect the dataset, but also its child datasets.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-v3.toucantoco.com/data-management-in-datahub/datasets-in-toucan/managing-datasets/editing-duplicating-and-deleting-a-dataset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
