Projects
DeleteReplica
Delete a replica
Removes a read replica from a database.
Usage
err := client.Projects.DeleteReplica(ctx)Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ctx | context.Context | Yes | Request context |
Response
error — returns nil on success.
Example
import pgbeam "github.com/pgbeam/pgbeam-go"
client := pgbeam.NewClient(&pgbeam.ClientOptions{
APIKey: "pgb_your_api_key",
})
err := client.Projects.DeleteReplica(ctx)
if err != nil {
log.Fatal(err)
}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. |