---
title: "Delete the PostgreSQL private endpoint"
method: DELETE
path: "/v1/organizations/{organizationId}/postgres/{postgresId}/privateEndpoint"
tags: ["Postgres"]
---

# Delete the PostgreSQL private endpoint

`DELETE /v1/organizations/{organizationId}/postgres/{postgresId}/privateEndpoint`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/postgres/{postgresId}/privateEndpoint`
- Auth: HTTP basic

**This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Deletes the AWS private endpoint service of a Postgres service. Connections through approved VPC endpoints stop working. Private endpoints are available only for AWS Postgres services, and only for organizations with the feature enabled.

## Path parameters

- `organizationId` string, uuid, required
- `postgresId` string, uuid, required

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `403`: The caller lacks permission on the Postgres service, or private endpoints are not enabled for the organization.
- `404`: The Postgres service does not exist, or it has no private endpoint.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

## Changes

- **2026-12-02** `dd7b68280285`: 2 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
- **2026-11-17** `c0b2c701c12e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/postgres/:postgresId/privateEndpoint/delete.md)

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
