---
title: "Delete a workflow step"
method: DELETE
path: "/api/v1/workflow/steps/{stepId}"
tags: ["Workflow"]
---

# Delete a workflow step

`DELETE /api/v1/workflow/steps/{stepId}`

Deletes a [step](https://www.dotcms.com/docs/latest/managing-workflows#Steps) from a [workflow scheme](https://www.dotcms.com/docs/latest/managing-workflows#Schemes).

Returns the deleted workflow step object.

## Path parameters

- `stepId` string, required

## Response `200`

Workflow step deleted successfully

- ResponseEntityWorkflowStepView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` WorkflowStep
    - `id` string
    - `creationDate` string, date-time
    - `name` string
    - `schemeId` string
    - `myOrder` integer
    - `resolved` boolean
    - `enableEscalation` boolean
    - `escalationAction` string
    - `escalationTime` integer
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `401` — Invalid User
- `403` — Forbidden
- `404` — Workflow action not found
- `406` — Not Acceptable
- `500` — Internal Server Error

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
