---
title: "Delete a trigger"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a trigger

Path: CloudRaker Workspace API › Workspace Triggers

`DELETE /triggers/{triggerId}`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `triggerId` (`deleteTrigger.path.triggerId`; string, required)
  - maxLength 128; pattern `^trg_[A-Za-z0-9_-]+$`

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.cloudraker.com/triggers/<triggerId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/triggers/<triggerId>';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/triggers/<triggerId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 204

The trigger was deleted.

### 400

`validation_failed`: a request parameter or body field is invalid.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`deleteTrigger.response.400.error`; string, required) — The sentence a human reads.
- `error_code` (`deleteTrigger.response.400.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`deleteTrigger.response.400.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`deleteTrigger.response.400.issues.path`; string, required)
  - `code` (`deleteTrigger.response.400.issues.code`; string, required)
  - `message` (`deleteTrigger.response.400.issues.message`; string, required)

### 404

`not_found` — No such trigger, or the caller may not see it.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`deleteTrigger.response.404.error`; string, required) — The sentence a human reads.
- `error_code` (`deleteTrigger.response.404.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`deleteTrigger.response.404.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`deleteTrigger.response.404.issues.path`; string, required)
  - `code` (`deleteTrigger.response.404.issues.code`; string, required)
  - `message` (`deleteTrigger.response.404.issues.message`; string, required)

### 409

`trigger_conflict` — that webhook address or email address is already used in this organization, or a channel key rotation is unsettled; `trigger_limit` — 50 enabled triggers is the maximum; `trigger_migration_in_progress` — a legacy transfer still owns this source.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`deleteTrigger.response.409.error`; string, required) — The sentence a human reads.
- `error_code` (`deleteTrigger.response.409.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`deleteTrigger.response.409.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`deleteTrigger.response.409.issues.path`; string, required)
  - `code` (`deleteTrigger.response.409.issues.code`; string, required)
  - `message` (`deleteTrigger.response.409.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/workspace-triggers/delete-trigger/index.md
