# Delete trigger

`DELETE https://api.cryptohopper.com/v1/hopper/{id}/trigger/{trigger_id}`

Part of [Triggers](https://www.cryptohopper.com/api-documentation/api-reference/triggers.md) in the Cryptohopper API reference.

Deletes a trigger of the hopper and returns how many triggers are left.

The handler checks no OAuth scope: any valid access token can call it. No request body is needed.

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `trigger_id` | string | yes | Trigger ID. |
| `id` | string | yes | Hopper ID. |

## Request body

| Field | Type | Required | Description |
|---|---|---|---|
| `indicators` | array of string | no |  |
| `actions` | array of string | no |  |

## Example request

```bash
curl -X DELETE "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/trigger/TRIGGER_ID" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"indicators":["price"],"actions":["load_template"]}'
```

## Response

Example response (illustrative values):

```json
{
    "data": {
        "message": "Trigger deleted.",
        "triggers_left": 5,
        "triggers_total": 0
    }
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
