> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hopae.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Workflow

> Delete a workflow.

Delete a workflow. Cannot delete the default workflow — set another workflow as default first via the set-default endpoint.

## Request

<ParamField header="Authorization" type="string" required>
  `Bearer <API_KEY>` from Console > Developers > Workspace API Keys.
</ParamField>

### Path parameters

<ParamField path="client_id" type="string" required>
  Client identifier of the app.
</ParamField>

<ParamField path="workflow_id" type="string" required>
  Workflow identifier.
</ParamField>

## Response

<ResponseField name="deleted" type="boolean">
  `true` if successfully deleted.
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X DELETE \
    -H "Authorization: Bearer sk_workspace_test_..." \
    "https://sandbox.api.hopae.com/connect/v1/apps/abc123/workflows/wf_abc123"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  { "deleted": true }
  ```
</ResponseExample>

<Info>
  Returns `400` if attempting to delete the default workflow. Use the set-default endpoint to change the default first.
</Info>
