Skip to main content

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

ParameterDescriptionRequired
-e, --env-idEnvironment IDNo
-s, --serviceNameService nameNo
--forceForce deletion and skip confirmation promptsNo
--dry-runPerform a dry run to preview the services to be deleted without actual executionNo
-h, --helpDisplay command help informationNo

Precautions

  • The deletion operation is irreversible; once the service is deleted, it cannot be recovered.
  • When --force is 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.