> ## 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 step

> Remove a step node from a workflow draft canvas.

Deletes a step node from the workflow draft. Any downstream steps referencing output from this deleted step must be updated to prevent execution validation errors.

### Path Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | **Yes** | Unique identifier of the workflow (`wkf_...`). |
| `stepId` | `string` | **Yes** | Step ID to remove from draft graph (`step_...`). |

### cURL Example

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

### Response Example

```json theme={null}
{
  "data": {
    "stepId": "step_789xyz",
    "deleted": true
  },
  "success": true
}
```


## OpenAPI

````yaml openapi.json DELETE /api/v1/workflow/{id}/step/{stepId}
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}/step/{stepId}:
    delete:
      tags:
        - Workflow
      summary: Delete a workflow step
      parameters:
        - schema:
            type: string
            description: Workflow ID
            example: wkf_123abc
          required: true
          description: Workflow ID
          name: workflowId
          in: path
        - schema:
            type: string
            description: Step ID to delete
            example: step_456xyz
          required: true
          description: Step ID to delete
          name: stepId
          in: path
      responses:
        '200':
          description: Deletion result
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: {}
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  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.