---
title: "Remove a peer from a VPC."
method: DELETE
path: "/v1/vpc/{id}/peers/{peer_id}"
tags: ["VPC"]
---

# Remove a peer from a VPC.

`DELETE /v1/vpc/{id}/peers/{peer_id}`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/v1/vpc/{id}/peers/{peer_id}`
- Auth: HTTP bearer

Deletes a peer from the VPC by id.

## Path parameters

- `id` string, required
- `peer_id` string, required

## Response `200`

Peer removed

- DeletedResponse: Standard `{ "deleted": true }` acknowledgement.
  - `deleted` boolean, required

## Other responses

- `401`: Missing or invalid credentials
- `403`: Token lacks the vpc:write scope
- `404`: VPC or peer not found
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
