> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Delete a trigger subscription (beta)

`DELETE /api/v1/connections/{connection_id}/trigger-subscriptions/{subscription_id}`

This endpoint is in beta. Its request and response may change.

Deletes a trigger subscription, so the account or connection stops receiving the trigger. A polling subscription stops polling. An event already on its way to your endpoint is still delivered. To receive the trigger again, create a new subscription.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_id` | string | Yes | ID of the connection, in this environment. Up to 64 characters. |
| `subscription_id` | string | Yes | ID of the trigger subscription to delete. It must belong to the connection named in the path. |

**Errors**

- `400`: Invalid request - connection_id is not a valid connection ID, or subscription_id is not a valid trigger subscription ID
- `404`: Not found - no subscription with this ID exists on this connection in this environment, or Triggers isn't turned on for your environment
- `500`: Internal error - the subscription could not be deleted; retry the request

**Request**

```bash
curl -sS -X DELETE \
  "$SCALEKIT_ENVIRONMENT_URL/api/v1/connections/conn_133400101014995480/trigger-subscriptions/trgs_141020933185734981" \
  -H "Authorization: Bearer $TOKEN"
```

**Response**

```json
{}
```

**Python SDK:** `scalekit_client.actions.triggers.delete_subscription`

Delete one trigger subscription. Retried on `UNAVAILABLE`, so a `ScalekitNotFoundException` can also mean an earlier attempt of this same call already deleted it.

```python
scalekit_client.actions.triggers.delete_subscription(
    connection_id: str,
    subscription_id: str,
) -> None
```

Example:

```python
result = scalekit_client.actions.triggers.delete_subscription(
    connection_id="conn_133400101014995480",
    subscription_id="trgs_141020933185734981",
)
```

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `connection_id` | `str` | Yes | The connection (`conn_...`). |
| `subscription_id` | `str` | Yes | The subscription (`trgs_...`). |

Returns `None`.


Part of [Triggers](https://docs.scalekit.com/agentkit/reference/triggers/) in the [AgentKit API reference](https://docs.scalekit.com/agentkit/reference/). Authentication: https://docs.scalekit.com/agentkit/reference/authentication.md. Errors and rate limits: https://docs.scalekit.com/agentkit/reference/errors.md. Pagination: https://docs.scalekit.com/agentkit/reference/pagination.md


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
