---
title: "Delete a BGP neighbor"
method: DELETE
path: "/config/bgp/neigh/{ip_address}"
---

# Delete a BGP neighbor

`DELETE /config/bgp/neigh/{ip_address}`

## Request

- Base URL: `http://0.0.0.0:11111/netlox/v1`
- URL: `http://0.0.0.0:11111/netlox/v1/config/bgp/neigh/{ip_address}`
- Auth: API key in header `Authorization`

Delete a BGP Neighbor

## Path parameters

- `ip_address` string, required

## Query parameters

- `remoteAs` integer

## Response `204`

OK

## Other responses

- `400`: Malformed arguments for API call
- `401`: Invalid authentication credentials
- `403`: Capacity insufficient
- `404`: Resource not found
- `409`: Resource Conflict. Neigh already exists
- `500`: Internal service error
- `503`: Maintenance mode

## Changes

- **2023-08-25** `5d682b53bb47`: 1 warning, 1 info
  - deleted the `query` request parameter `remote_as`
  - added the new optional `query` request parameter `remoteAs`
- **2023-07-27** `64141105ff1d`: 1 info
  - endpoint added
- **2023-06-29** `0e6bd4e2dcc9`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/loxilb-io/apis/loxilb-rest-api/changes/config/bgp/neigh/:ip_address/delete.md)

---

[API](https://skmtc.dev/loxilb-io/apis/loxilb-rest-api.md) - [All operations](https://skmtc.dev/loxilb-io/apis/loxilb-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loxilb-io/apis/loxilb-rest-api/revisions/cb6820b4f999?raw)
