DocuTray

deleteStep

Delete a step

DELETE/api/steps/{id}

Permanently delete a step of the API key's organization.

Requires the owner or admin organization role; a member receives 403.

This also deletes the step's whole execution history, which is removed in cascade and cannot be recovered. To stop a step from running without losing its history, set isActive: false instead.

Deletion is rejected with 409 while the step has executions in flight — uploading, enqueued or in progress. The check is part of the delete statement itself, so an execution submitted while the deletion runs is either counted or rejected, never silently destroyed.

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Path Parameters

id*string

Step ID

Response Body

application/json