---
title: delete_workflow
description: Removes a workflow's file from `branch`.
sidebar:
  order: 56
---

Removes a workflow's file from `branch`. Typed inside `bash`, where `help delete_workflow` prints the same.

```text
Usage: delete_workflow HANDLE BRANCH [options]

Removes a workflow's file from `branch`. Once merge_branch puts it
live, the workflow and its run history are gone. **There is no
undo.** The rows it wrote stay.

Options:
  --handle TEXT (required)
      The workflow's handle, as list_workflows names it: its file is workflows/<handle>.json. Lower-case letters and digits, words joined by _.
  --branch TEXT (required)
      The branch to write workflows/<handle>.json on, made with git switch -c. Nothing changes until merge_branch puts it live.
  --message TEXT
      What the change is, in a line. Defaults to naming the files.
  --json OBJECT
      Every argument at once, as one JSON object; --json - reads it from stdin.
```
