---
search:
  tags:
    - relay-zones
    - DELETE
seo:
  description: >-
    Removes HAProxy and keepalived from the… Reference for the DELETE
    /api/v1/relay-zones/{id}/relays/{server_id} endpoint in the TimescaleDB
    Enterprise API.
sidebar:
  label: Remove a relay from a relay zone
  badge: DELETE
title: Remove a relay from a relay zone
type: openapi-operation
---
Removes HAProxy and keepalived from the relay, and makes the server free. The other relays do not change. When the relay holds the address of the zone, the address moves to another relay once, and the connections through it start again. A completed removal gives the zone a new enroll key: the enroll routes answer 410 for each enroll command of the zone from before, and the zone needs a redeploy. Rejected with 409 for the last relay of a zone that servers reach the console through.

`DELETE /api/v1/relay-zones/{id}/relays/{server_id}`

**Responses**

- `202` — Accepted
- `default` — Error

Response example, 202:

```json
{
  "workflow_id": "string"
}
```
