# Delete a workflow

> Archive a workflow or app you own, at the version you read.

Source: https://docs.generalinput.com/api/workflows/delete



<Endpoint method="POST" path="/v1/workflows/:id/delete" />

<Access scope="workflows:manage" />

Owner only, and at the version the caller read. Apps are workflows here, so this deletes them too. The resource is archived, not hard-deleted.

## Body [#body]

| Field     | Type    | Required | Notes                                                                    |
| --------- | ------- | -------- | ------------------------------------------------------------------------ |
| `version` | integer | yes      | The workflow's current version, as [get](/api/workflows/get) returns it. |

## Response [#response]

`204 No Content`.

## Errors [#errors]

| Status | When                                                               |
| ------ | ------------------------------------------------------------------ |
| `404`  | Not found, or the caller is not the owner.                         |
| `409`  | The workflow moved on since `version` was read. Refetch and retry. |
