# How to Edit, Clone, or Delete a Scenario

### Scenario edit form

<figure><img src="https://docs.docstudio.com/en/latest/_images/scenario-edit.png" alt=""><figcaption></figcaption></figure>

1. Source and destination UUIDs.
2. The condition for the step.
3. Condition XSLT field (required if **Condition** is enabled).
4. Action buttons on the step form:

* **Save step** ![](/files/Cc9wRxz4yr2WrK09Ynjl) button. Available in edit mode. Disabled if the step form is invalid.
* **Delete step** <img src="/files/1yUYCpXHpfuSTBioA5it" alt="" data-size="line"> button. The first step can’t be deleted.
* **Edit step** <img src="/files/CObPP9GsnSlTOf8wXAWh" alt="" data-size="line"> button. Switches the step to edit mode.

5. Action buttons in the scenario form:

* **Delete scenario** <img src="/files/pS2VjeIdiQS5iHAFeWds" alt="" data-size="line"> button
* **Clone scenario** <img src="/files/zc21CcfdnGkRuuSD8wCZ" alt="" data-size="line"> button
* **Save scenario** <img src="/files/WwVGAM0mqi0Xigm0WHIy" alt="" data-size="line"> button

### How to edit a scenario

1. Open the scenario list <img src="/files/lGzpjyiIEASPtIlwVQMU" alt="" data-size="line">.
2. Click the **Scenario menu** <img src="/files/W6LwoGaJWytgM2JWQmsW" alt="" data-size="line"> button.
3. Select the **Edit** option from the list.
4. Make your changes and save the scenario.

#### How to edit a scenario step

1. Click the **Edit step** <img src="/files/CObPP9GsnSlTOf8wXAWh" alt="" data-size="line"> button on the step you want to edit.
2. Make your changes.
3. Click the **Save step** ![](/files/Cc9wRxz4yr2WrK09Ynjl) button in the upper-right corner of the step.
4. Click the **Save scenario** <img src="/files/WwVGAM0mqi0Xigm0WHIy" alt="" data-size="line"> button.

### How to clone a scenario

1. Open the scenario list <img src="/files/lGzpjyiIEASPtIlwVQMU" alt="" data-size="line">.
2. Click the **Scenario menu** <img src="/files/W6LwoGaJWytgM2JWQmsW" alt="" data-size="line"> button.
3. Select the **Clone** option from the list.

{% hint style="info" %}
When a scenario is cloned, you receive a notification. The cloned scenario appears in the list.
{% endhint %}

You can also clone a scenario using the <img src="/files/zc21CcfdnGkRuuSD8wCZ" alt="" data-size="line"> button, inside the editing form of a specific scenario.

### How to delete a scenario

1. Open the scenario list <img src="/files/lGzpjyiIEASPtIlwVQMU" alt="" data-size="line">.
2. Click the **Scenario menu** <img src="/files/W6LwoGaJWytgM2JWQmsW" alt="" data-size="line"> button.
3. Select the **Delete** option from the list.

{% hint style="info" %}
When a scenario is deleted, you receive a notification. The scenario disappears from the list.
{% endhint %}

You can also delete a scenario using the <img src="/files/pS2VjeIdiQS5iHAFeWds" alt="" data-size="line"> button inside the editing form of a specific scenario.


---

# 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://support.docstudio.com/user/scenarios/managing-scenarios/how-to-edit-clone-or-delete-a-scenario.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.
