Skip to main content

tcb domains rm

Unbind a custom domain.

v3.0.0+

tcb domains has been available since v3.0.0.

Usage​

tcb domains rm <domain> [options]

Parameters​

ParameterRequiredDescriptionDefault
<domain>YesDomain to unbind—
-e, --env-id <envId>NoEnvironment IDenvId in the configuration
--platform-id <platformId>NoPlatform edition pool ID, mutually exclusive with -e (v3.8.3+)—

Examples​

tcb domains rm api.example.com -e <envId>

# Inside a platform edition pool (v3.8.3+)
tcb domains rm api.example.com --platform-id <platformId>

⚠️ Unbinding fails while routes are still attached; delete them first.

# Inspect the routes of the domain
tcb routes list -e <envId> --filter "Domain=api.example.com"

# Delete the routes, then unbind
tcb routes delete api.example.com -e <envId> -p /api
tcb domains rm api.example.com -e <envId>