---
title: "Delete an automation rule"
method: DELETE
path: "/api/workspaces/{workspaceId}/automations/{ruleId}"
tags: ["Automations"]
---

# Delete an automation rule

`DELETE /api/workspaces/{workspaceId}/automations/{ruleId}`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/automations/{ruleId}`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required
- `ruleId` string, required

## Response `200`

Automation rule deleted

- object
  - `success` boolean, required
  - `data` object, required
    - `deleted` boolean, required

## Other responses

- `403`: Only workspace OWNER or ADMIN can manage automations
- `404`: Rule not found

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
