This Azure CLI article will discuss the syntax and usage of the az account clear Azure CLI command with an example of how to use this command.
Table of Contents
Az Account Clear
This Azure CLI command can help you clear all the subscriptions from the Azure CLI’s local cache.
Syntax of Az Account Clear
Below is the syntax of the Az Account Clear
az account clearAz Account Clear Example
You can execute the below Azure CLI command to clear all the subscriptions from the Azure CLI’s local cache.
az account clearAfter executing the above command, I got the expected output as below
PS /home/bijay> az account clear
Logout successful. Re-login to your initial Cloud Shell identity with 'az login --identity'. Login with a new identity with 'az login'.You can see the same output in the screenshot below

You may also like following the articles below
Conclusion
This article discussed the syntax and usage of the az account clear Azure CLI command and provided an example of how to use it.

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
