tcb cloudrun delete
Delete a CloudBase Run service together with its configuration and resources.
Usage
tcb cloudrun delete [options]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
-e, --env-id <envId> | No | Environment ID | — |
-s, --serviceName <serviceName> | No | Service name | — |
--force | No | Skip the confirmation prompt | false |
--dry-run | No | Preview the services to delete without deleting them | false |
Examples
# Interactive delete, the CLI asks for the service
tcb cloudrun delete
# Delete a service in a specific environment
tcb cloudrun delete -e env-123456 -s my-service
# Delete without confirmation
tcb cloudrun delete -e env-123456 -s old-service --force
# Preview the services to delete
tcb cloudrun delete -e env-123456 -s my-service --dry-run
⚠️ Deletion is irreversible, back up important data and configuration first.
Notes
- Deleting a service also releases all of its revisions, the images built by the platform, and the uploaded deployment packages; none of them can be recovered
- For services deployed with
--image-url, the images live in your own repository and deleting the service does not affect them - Deleting a single revision does not remove the image used by that revision from the image repository. See Images and Deployment Packages