Is it safe to delete gcloud logs?

~/.config/gcloud/logs · Safe to delete

What it is

Logs of Google Cloud CLI commands.

Can you delete it?

Yes, it is rebuilt automatically. gcloud writes one log per command and keeps them for a while. They help only when a command failed and you want its details.

How to clean it safely

  1. Delete the contents. Keep the rest of ~/.config/gcloud (your sign-in).

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/".config/gcloud/logs" 2>/dev/null

Step-by-step guide: Developer caches on a Mac →

Questions

Is it safe to delete ~/.config/gcloud/logs?

Yes, it is rebuilt automatically. gcloud writes one log per command and keeps them for a while. They help only when a command failed and you want its details.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac