• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

DeleteWorkflowDefinition

This API deletes all the workflow definition versions with the specified name.

Important

  • In order to delete a definition, there must be no schedules using the definition. If the definition is currently used by a schedule, deleting the definition will fail and return an error accordingly.
  • All running workflow runs will continue to completion even if the definition is deleted.

Input parameters

Parameter

Type

Required

Description

definition.name

String

Yes

The name of the workflow definition to delete. All versions with this name will be deleted.

scope.id

String

Yes

Your account ID.

scope.type

Enum

Yes

The scope type (ACCOUNT).

Sample request

mutation {
workflowAutomationDeleteWorkflowDefinition(
definition: { name: "my-workflow" }
scope: { id: "12345678", type: ACCOUNT }
) {
definition {
name
}
}
}
Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.