Delete an automation step
DELETE /automations/{automationUuid}/automation_steps/{uuid}
/automations/{automationUuid}/automation_steps/{uuid}Deletes a step from the flow. By default the steps that followed it are reconnected to its parent so the flow stays connected; with mode set to cascade, the step and everything after it are deleted.
When to use: To remove one action from a flow, for example an email that is no longer wanted.
When not to use: To move a step instead of removing it, use move_step_position.
Side effects: Deleting a condition step in the default mode keeps only its "yes" branch and deletes the "no" branch. Any mode value other than reconnect is treated as cascade, which deletes the step and everything after it, so check the value before sending. It cannot be undone.
Permissions: Requires the author role or higher, or the marketing.automations.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the automation, as returned by list_automations.
UUID of the step, as returned by list_automation_steps.
Query Parameters
What happens to the steps that follow: they are reconnected to the deleted step's parent, or they are deleted too. Any value other than the default behaves as the second option.
"reconnect"Value in
- "reconnect"
- "cascade"
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90?mode=reconnect" \ -H "X-Auth-Token: YOUR_API_KEY"