# Delete a monitor

> Stops the checks and removes the monitor and its change history.

Source: https://docs.spicrawl.com/api-reference/monitors/monitors-delete

## DELETE /v1/monitors/{monitorID}

Operation ID: `monitorsDelete`. API key scope: `monitors`.

Stops the checks and removes the monitor and its change history.

### Example

```bash
curl -X DELETE "https://api.spicrawl.com/v1/monitors/{monitorID}" \
  -H "Authorization: Bearer $SPICRAWL_API_KEY"
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `monitorID` | path | string | yes | The monitor `id` returned by `POST /v1/monitors`. An id of another organization answers 404. |

### Responses

#### 204

Deleted. No body.

Headers: `X-Request-Id`.

#### 401

Missing, invalid, revoked or expired key. Not retryable with the same key.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 403

The key lacks the scope this route requires (`ERR::AUTH::INSUFFICIENT_SCOPE`), or the action is not permitted.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 404

No such resource for this key's organization.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 500

Internal error. Retryable when `retryable` is true.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

Full OpenAPI spec: https://docs.spicrawl.com/openapi.yaml
