Skip to main content
POST
Delete Definition
Use this API to soft-delete (tombstone) a workflow definition. Tombstoned definitions are filtered from get and list. Definitions with in-flight executions cannot be deleted.

Endpoint

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

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Example Requests

Delete a definition

Response

Success Response

Failure Response

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