# Delete a Workflow

Deleting a workflow moves it to your workspace [Trash](/workspaces/trash.md) for 30 days before it is permanently removed. You can restore it from the Trash any time during the retention window.

## Delete a workflow

1. Go to your Workflows dashboard and click the three dots next to the workflow you want to delete.
2. Click "Delete".

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

3. Type the workflow ID to confirm.

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

4. Click "Delete".

## Restore or permanently delete

See [Trash](/workspaces/trash.md) for how to restore a deleted workflow or remove one immediately without waiting for the 30-day retention window.

## Delete via API, SDK, or CLI

You can also move a workflow to Trash through:

* REST API: `DELETE /:workspace/workflows/:workflow`
* Python SDK: `rfapi.delete_workflow(api_key, workspace, workflow_url)`
* CLI: `roboflow workflow delete <workflow>`

To restore outside the web app use `workspace.restore_from_trash("workflow", workflow_id)` from the SDK or `roboflow workflow restore <workflow>` from the CLI.


---

# 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.roboflow.com/workflows/delete-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.
