PgBeam Docs
Projects

DeleteCustomDomain

Delete a custom domain

Removes a custom domain from the project and revokes its TLS certificate.

Usage

err := client.Projects.DeleteCustomDomain(ctx)

Parameters

ParameterTypeRequiredDescription
ctxcontext.ContextYesRequest 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.DeleteCustomDomain(ctx)
if err != nil {
  log.Fatal(err)
}

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
404Resource not found.
429Rate limited. Try again later.

On this page