'How to delete the latest revision on Cloud Run (GCP)

I'm trying to delete the latest revision "editor-v2-0-0" but there is the message "Latest revision cannot be deleted." as shown below even though it doesn't have any tags and 0% Traffic is set to it:

enter image description here

Is it impossible to delete the latest revision "editor-v2-0-0"?



Solution 1:[1]

Yes, it's impossible to delete the latest revision "editor-v2-0-0". The documentation says:

You cannot delete a revision if:

  • it is able to receive traffic,
  • it is the only revision of the service,
  • it is the latest revision of the service. // Here

But, If you really want to delete the latest revision "editor-v2-0-0", create one more revision "editor-temp" which becomes the latest while the revision "editor-v2-0-0" becomes old as shown below, then now, you can delete the revision "editor-v2-0-0":

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kai - Kazuya Ito