Safe to Delete

Azure CLI Log & Token Cache (~/.azure/logs)

Quick Answer: The Azure CLI (.azure) stores execution logs and MSAL auth tokens. Deleting old log logs is safe.

Bottom Line: It is safe to delete ~/.azure/logs. Clearing Azure CLI logs frees storage without affecting your active Azure cloud resources.


What is the Azure CLI Cache?

Located at ~/.azure/logs and ~/.azure/commands (or %USERPROFILE%\.azure\logs), the Azure CLI (az) logs command executions and telemetry.


Can You Delete Azure CLI Logs?

✅ Yes, safe to delete.


How to Clear Azure CLI Logs

rm -rf ~/.azure/logs/*

Discussion

Loading authentication...

Related in developer

The AI Engineer's Model Disk Cleanup Guide: Hugging Face, Ollama & PyTorch

The ultimate 1,200-word field guide for AI developers and local LLM hobbyists to reclaim 200GB+ from Ollama, Hugging Face, PyTorch, and vLLM model weights.

Safe to Delete

Android Studio System Index Cache (AndroidStudio Cache)

Android Studio caches Gradle project indexes, VFS caches, and compiler artifacts. Invalidate and clear is safe.

Safe to Delete

Ansible Automation Temp & Fact Cache (~/.ansible/tmp)

Ansible stores temporary playbook execution modules and target host fact JSON caches in ~/.ansible/tmp. Clearing Ansible tmp is safe.

Safe to Delete
Back to all files