# Remove a call script from a page

RETIRES a call script rather than deleting it: nothing in this table is ever deleted, because what a workspace was telling its reps to say is evidence. Retiring the last live script for a target simply lets the next line of the resolution order — status, then workspace, then the built-in script — answer instead. Answers `{retired: true}`. Leads page, admin.

Access class: `def:admin`.

## Endpoint

`DELETE /v1/definitions/{key}/scripts/{scriptId}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| scriptId | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "retired": true
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
