> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/workflow-builder/unpublish-a-workflow.md).

# Unpublish a workflow

Use **Unpublish** when you want to stop a published workflow.

This applies to:

* **Tools**
* **Chats**
* **Automation**

{% hint style="warning" %}
Unpublishing deactivates the workflow and reverts it to **Draft** status.
{% endhint %}

### How to unpublish

1. Go to the **Flows** page.
2. Find the published workflow you want to stop.
3. Click the three-dot menu.
4. Click **Unpublish**.
5. Click **Confirm**.

<figure><img src="/files/dQMlj5HUX79UskaS7AvT" alt=""><figcaption></figcaption></figure>

After that, the workflow returns to **Draft**.

You can edit it, test it, and publish it again later.

### What changes after unpublishing

* the workflow is no longer active
* shared access stops
* the workflow moves back to **Draft**

### Tips

* Unpublish your workflow before making major changes.
* Use **Draft** to test safely before publishing again.
* Double-check shared links after republishing.

### Next steps

* Learn how to [publish a workflow](/workflow-builder/publish-a-workflow.md).
* Learn how to [manage a workflow](/workflow-builder/manage-a-workflow.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.diaflow.io/workflow-builder/unpublish-a-workflow.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.
