Skip to main content

Viewing or Deleting Versions

When you deploy to the service or change the service configuration, an immutable revision is created.

The following considerations apply to revisions:

  • You do not need to manually delete revisions, but you can do so if needed.
  • Unused revisions do not consume any resources or incur any charges.
  • The system automatically assigns a revision number.

List Versions​

You can view the version history of the service in Service Details -> Deployment Records. To view detailed information about a version, click to view version details.

Delete Versions​

A common use case for deleting revisions is to ensure that a specific revision is not used accidentally.

In the following cases, you cannot delete a revision:

  • It can receive traffic,
  • It is the only revision of the service,
  • It is the latest revision of the service.

After you delete a revision, the container image used by that revision is not automatically deleted from the image repository.

You cannot undo a revision deletion.

You can select the corresponding version to delete in Service Details -> Deployment Records.

Images​

CloudRun has two backend implementations. Deletion behavior differs by environment type.

OperationSmall-tenant environmentLarge-tenant environment
Delete a single revision manuallyImage keptImage kept
Delete a serviceImage kept, controlled by IsDeleteImage, which defaults to falseImage deleted; the server-side cascade deletion of revisions deletes images by default

When you delete a single revision manually, both the console and the CLI send IsDeleteImage: false, so the image is kept and still counts against the image repository quota. Deleting a service cascades to all of its revisions; in large-tenant environments this cascade ignores external parameters and deletes images by default. Back up images you need before deleting a service.

  • --is-delete-image of tcb cloudrun version delete defaults to false; set it to true to delete the image together with the revision. See Delete Versions
  • --is-delete-server takes effect only in small-tenant environments. Large-tenant environments ignore it: setting it to true deletes the revisions but leaves an empty service. To delete a service, use tcb cloudrun delete or the console's delete-service entry
  • tcb cloudrun delete offers no image-deletion option. See Delete a Service
  • For services deployed from an image URL, the images live in your own repository and are not affected by deleting the service
  • By default, images built by the platform are stored in the TCR Personal Edition instance under your account (Guangzhou region). Neither the CloudRun console nor the CLI offers a cleanup entry point; to clean them up, use the TCR console per repository. See Service FAQ
  • You can switch to your own enterprise image registry CCR in the CloudRun global configuration. After that, all images built from source code are written to that CCR

Version Rollback​

To roll back to a previous version, you can select the corresponding version in Service Details -> Deployment Records to perform the rollback.