> For the complete documentation index, see [llms.txt](https://docs.groundcover.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.groundcover.com/use-groundcover/remote-access-and-apis/api-examples/delete-workflow.md).

# Delete Workflow

### Endpoint

`DELETE /api/workflows/{id}`

### Authentication

This endpoint requires API key authentication.

### Headers

| Header          | Value                   | Description                |
| --------------- | ----------------------- | -------------------------- |
| `Authorization` | `Bearer <YOUR_API_KEY>` | Your groundcover API key   |
| `Accept`        | `*/*`                   | Accept any response format |

### Path Parameters

| Parameter | Type     | Description                        |
| --------- | -------- | ---------------------------------- |
| `id`      | `string` | The UUID of the workflow to delete |

### Example Request

```bash
curl -L \
  --request DELETE \
  --url 'https://api.groundcover.com/api/workflows/{id}' \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --header 'Accept: */*'
```

### Response

#### Success Response

**Status Code:** `200 OK`

```json
{
  "message": "OK"
}
```

### Notes

* Once a workflow is deleted, it cannot be recovered
* The deletion is immediate and permanent
* All associated workflow executions and history are also removed
* The API returns HTTP 200 status code for both successful deletions and "not found" cases


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.groundcover.com/use-groundcover/remote-access-and-apis/api-examples/delete-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.
