Skip to main content
POST
Delete Definition
Use this API to delete a workflow definition. The default is a soft delete (tombstone): the definition stays on disk, hidden from get and list, and can no longer be dispatched. Pass purge: true to physically remove it and its version snapshots. After either kind of delete the definitionId is free to reuse, and re-creating it starts again at version: 1. Definitions with in-flight executions cannot be deleted.

Endpoint

POST https://api.velt.dev/v2/workflow/definitions/delete

Headers

string
required
Your API key.
string
required

Body

Params

object
required

Example Requests

Soft-delete a definition

Hard-delete a definition

Response

Success Response

purged is true only when you passed purge: true.

Failure Response

Errors: NOT_FOUND (definition does not exist) / FAILED_PRECONDITION (in-flight executions exist).