---
title: "Delete automation"
full: true
_openapi:
  method: DELETE
  toc: []
  structuredData:
    headings: []
    contents:
      - content: "Soft-deletes an automation workflow"
_apiData:
  document: "https://reloop.sh/api/workflow/openapi/json"
  operationData: [{"path":"/api/workflow/v1/automations/{automation_id}","method":"delete"}]
  parameterList: [{"name":"automation_id","type":"string","required":true,"description":"Automation ID (auto_...)","location":"path","minLength":1}]
  responseMap: {"200":{"description":"Response for status 200","schema":{"success":true,"id":"auto_123456789"}},"401":{"description":"Response for status 401","schema":{"message":"Authentication required"}},"404":{"description":"Response for status 404","schema":{"message":"Automation not found","why":"No automation with ID \"auto_123456789\" exists for your organization.","fix":"Verify the ID and ensure it belongs to your active organization."}},"500":{"description":"Response for status 500","schema":{"message":"Failed to update automation","why":"An unexpected error occurred while updating automation \"auto_123456789\".","fix":"Please try again later or contact support."}}}
  codeSamples:
    - id: node
      lang: javascript
      label: Node.js
      source: |-
        import { Reloop } from "reloop-email";
        
        const reloop = new Reloop({ apiKey: "rl_123456789" });
        
        const { automation, automationError } = await reloop.automations.delete("auto_123456789");
        if (automationError) throw automationError;
    - id: curl
      lang: bash
      label: cURL
      source: |-
        curl -X DELETE https://reloop.sh/api/workflow/v1/automations/auto_123456789 \
          -H "x-api-key: rl_123456789"
    - id: python
      lang: python
      label: Python
      source: |-
        import requests
        
        res = requests.delete(
            "https://reloop.sh/api/workflow/v1/automations/auto_123456789",
            headers={"x-api-key": "rl_123456789"},
        )
        res.raise_for_status()
        print(res.json())
---
> For the complete documentation index, see [llms-docs.txt](/llms-docs.txt) or the site index [llms.txt](/llms.txt). Full docs corpus: [llms-full-docs.txt](/llms-full-docs.txt). Prefer markdown URLs (append `.md`) for agent consumption. Product skill: [skill.md](/skill.md).


{/* This file was generated by the OpenAPI doc generator. Do not edit this file directly. Run `bun run generate:api-docs` to regenerate. */}

<APIPage />
