Out Plane
domain

domain remove

Give up a custom domain.

destructive--dry-run

Gives up the domain entirely: the registration and the certificate go with it.

To stop serving a domain but keep it, use domain unpoint instead. Traffic stops immediately here, before any DNS change of your own has taken effect.

Usage

outplane domain remove <HOST> [flags]

Arguments

ArgumentTypeDescription
HOSTstringThe domain, such as app.example.com. Required.

Flags

FlagTypeDescription
--pathstringWhich route on the host, defaulting to the root. Needed only when the host carries several.
-y, --yesboolAcknowledge the removal. Not sufficient on its own.
--confirm-namestringThe host, typed again.

The global flags apply as well.

Output

FieldTypeDescription
idstring | null
hoststring
pathstringTrailing slashes are stripped; the root is /.
appstring | nullNull while the route points nowhere.
appIdstring | null
portIdstring | nullThe port record the route binds to.
sslboolAlways true: a certificate is issued for every custom domain.
urlstring | nullThe address the route answers on.
changedbool

Examples

See what would stop answering

outplane domain remove app.example.com --dry-run

The confirmed form

outplane domain remove app.example.com --yes --confirm-name app.example.com

Check which route the host resolves to

outplane domain remove app.example.com --dry-run --json
{
  "changed": false,
  "host": "app.example.com",
  "path": "/"
}

What to Know

  • Never prompts. Without confirmation it exits 4 and returns the command to replay in the error's confirm_command field.
  • Under a detected agent harness it exits 4 even with both flags.
  • To take a domain out of service and keep it, use domain unpoint. This gives up the registration and the certificate.
  • Traffic stops immediately, before any DNS change of yours takes effect.

Errors

Beyond 0 for success, this command exits with:

ExitKindMeaning
2usageInvalid arguments, unknown flag, or client-side validation failure.
3authNot authenticated, token revoked or expired, or forbidden for this team.
4confirmation_requiredA destructive operation stopped. Replay the command in confirm_command.
5not_foundThe named resource does not exist, or is not visible to this credential.
8upstreamThe Out Plane API returned a server error.

The code on the error object is one of confirmation.required, domain.confirm_name_mismatch, domain.not_found, domain.ambiguous. Branch on that, or on the exit status. The message is prose and changes.

On this page