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

# Delete Checks

> Remove an environment's check config.

### Overview

Removes the check config for one environment, including its scenario and judge attachments. Past check runs are kept and still readable with [List Check Runs](https://docs.bland.ai/api-v2/get/agents-id-check-runs.md). When the environment has no config, the response is `200` with `deleted: false`, not `404`.

Requires an admin, owner, operator, or prompter role.

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Path Parameters

**agent\_id** `string` *required*

The agent's unique identifier.

**env** `string` *required*

`staging` or `production`. Any other value returns `400 BAD_REQUEST`.

### Response

**data.deleted** `boolean`

`true` when a config was removed, `false` when the environment had none.

**errors** `null | array`

`null` on success, or a list of error objects if the request failed.

```json Response theme={null}
{
  "data": {
    "deleted": true
  },
  "errors": null
}
```

```json Invalid Environment theme={null}
{
  "data": null,
  "errors": [
    {
      "error": "BAD_REQUEST",
      "message": "env must be 'staging' or 'production'"
    }
  ]
}
```

```json Not Found theme={null}
{
  "data": null,
  "errors": [
    {
      "error": "NOT_FOUND",
      "message": "Agent not found"
    }
  ]
}
```

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.