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

# Delete workflow

> Permanently delete a workflow and all associated versions, steps, triggers, and execution history.

Deletes a workflow container and cascades deletion across all associated draft/published versions, trigger states, step configurations, and historical execution run logs.

> [!CAUTION]
>
> This action cannot be undone. Any active schedules or webhook listeners associated with this workflow will be immediately unregistered.

### Path Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | **Yes** | Unique identifier of the workflow (`wkf_...`). |

### cURL Example

```bash theme={null}
curl -X DELETE "https://posttu.com/api/v1/workflow/wkf_abc123" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

### Response Example

```json theme={null}
{
  "data": {
    "id": "wkf_abc123",
    "deleted": true
  },
  "success": true
}
```


## OpenAPI

````yaml openapi.json DELETE /api/v1/workflow/{id}
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/workflow/{id}:
    delete:
      tags:
        - Workflow
      summary: Delete a workflow
      parameters:
        - schema:
            type: string
            description: Workflow ID
            example: wkf_123abc
          required: true
          description: Workflow ID
          name: id
          in: path
      responses:
        '200':
          description: Deletion result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowDeleteResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WorkflowDeleteResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Deletion success
          example: true
        message:
          type: string
          description: Status message
      required:
        - success
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.