# delete_site (/kya/reference/delete-site)



This can't be undone. Remove the script tag from your pages too: reports under a deleted key are dropped.

## DELETE https://api.finic.ai/v1/kya/sites/{id}

Deletes a site. Its key stops working within a minute: reports that carry it are dropped. This can't be undone. Its sessions can still be read until they're 30 days old.

Authorization: `Bearer <API key>` (see [Authentication](/authentication)).
- Path parameter `id`: The site's `id`.

### Responses

- **200**: The site is deleted.

| Field | Type | Always | Description |
| --- | --- | --- | --- |
| `id` | string | yes | The site's id |
| `deleted` | boolean | yes | Always `true`. |
| `request_id` | string | yes | `req_…`, the same as the `X-Request-Id` header. |

```json
{
  "id": "kst_01M4Z1X3G5P8D2F6J0YA4SMQNC",
  "deleted": true,
  "request_id": "req_01M4Z2M1T6W9E3R7Y5VA8PKGHB"
}
```

- **401**: `authentication_error`: the API key is missing, unknown, revoked or expired.

- **404**: `not_found`: no site with this `id` in your organization.

- **429**: `rate_limited`: over KYA's [request rate](/kya/reference#limits) for the organization, 50 a second. Retry with backoff.
