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

# 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.
