delete
Delete Service
Using the delete command can remove Cloud Run services and their associated resources.
Basic Usage
tcb cloudrun delete
Usage Example:
# Interactive Deletion: CLI Guides You to Select the Service to Delete
tcb cloudrun delete
## Delete Service in a Specific Environment
tcb cloudrun delete -e env-123456 -s my-service
# Force Delete, Skip Confirmation Prompt
tcb cloudrun delete -e env-123456 -s old-service --force
# Preview Services to Be Deleted (Dry Run)
tcb cloudrun delete -e env-123456 -s my-service --dry-run
# View Service List Before Batch Deletion
tcb cloudrun list -e env-123456
tcb cloudrun delete -e env-123456 -s service-1 --force
Command Line Parameters
| Parameter | Description | Required |
|---|---|---|
-e, --env-id | Environment ID | No |
-s, --serviceName | Service name | No |
--force | Force deletion and skip confirmation prompts | No |
--dry-run | Perform a dry run to preview the services to be deleted without actual execution | No |
-h, --help | Display command help information | No |
Precautions
- The deletion operation is irreversible; once the service is deleted, it cannot be recovered.
- When
--forceis not used, a confirmation prompt will appear to prevent accidental deletion. - Deleting a service will also delete its associated configurations and resources.
- It is recommended to back up important data and configurations before deletion.