> The index of all pages is at https://docs.afffast.com/llms.txt.

# link_default_not_deletable

The default link of a program cannot be deleted. Pause it instead.

HTTP status: **400**. Error type: `invalid_request_error`.

The default link of a program cannot be deleted. Pause it instead.

## Example

```json
{
  "error": {
    "type": "invalid_request_error",
    "code": "link_default_not_deletable",
    "message": "The default link of a program cannot be deleted. Pause it instead.",
    "param": "id",
    "doc_url": "https://docs.afffast.com/errors/link-default-not-deletable",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}
```

## Causes

- `DELETE /v1/links/{id}` names a default link. A link has `is_default: true` when it is the default link of a program.

## How to fix

- Do not delete the link. Pause it: send `PATCH /v1/links/{id}` with `{ "active": false }`. A paused link does not redirect.
- To find the default links, use `GET /v1/links?default=true`. See [Links and click tracking](https://docs.afffast.com/docs/links.md#default-links).
