Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

No way to delete Cloud Run Logs?

Is there really no way to delete or expire logs in Cloud Run? 

Note: The logs end up in two places:

(1) Cloud Run / the instance / Logs

(2) Logging / Log Explorer / the bucket

Logs in (2) expire after a customizable number of days, default 30 days, but I just noticed that the logs in (1) seem there forever, even after deploying a new version and I can't figure out any way to delete them other than deleting the entire service. Which is not great for a live service...

Help!!! 🙂

Solved Solved
1 2 2,029
1 ACCEPTED SOLUTION

Take a look at the gcloud CLI delete logs command

 

..... NoCommandLine ......
 https://nocommandline.com
A GUI for Google App Engine

View solution in original post

2 REPLIES 2

Take a look at the gcloud CLI delete logs command

 

..... NoCommandLine ......
 https://nocommandline.com
A GUI for Google App Engine

That indeed did the trick. That wipes all cloud run output from the console. Thank you so much for your reply.