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! Go to Solution.
Take a look at the gcloud CLI delete logs command
Take a look at the gcloud CLI delete logs command
That indeed did the trick. That wipes all cloud run output from the console. Thank you so much for your reply.