Projects
deleteReplica
Delete a replica
Removes a read replica from a database.
Usage
const result = await api.projects.deleteReplica({
pathParams: { database_id: "db_xxx", replica_id: "rep_xxx" },
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| pathParams.database_id | string | Yes | Unique database identifier (prefixed, e.g. db_xxx). |
| pathParams.replica_id | string | Yes | Unique replica identifier (prefixed, e.g. rep_xxx). |
Response
Promise<void> — no content.
Example
import { PgBeamClient } from "pgbeam";
const client = new PgBeamClient({
token: "pbk_...",
baseUrl: "https://api.pgbeam.com",
});
const result = await client.api.projects.deleteReplica({
pathParams: { database_id: "db_xxx", replica_id: "rep_xxx" },
});Errors
| Status | Description |
|---|---|
| 400 | Invalid request parameters. |
| 401 | Missing or invalid authentication. |
| 403 | Operation not allowed by current plan limits. |
| 404 | Resource not found. |
| 429 | Rate limited. Try again later. |