Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure
    • Azure Virtual Machine
    • Azure Active Directory
    • Azure CLI
    • Azure CLI Commands List
    • Azure Cognitive Services
    • Azure Cosmos DB
    • Azure DevOps
    • Azure Functions
    • Azure PowerShell Commands
    • Azure Sentinel
    • Azure SQL
    • Azure Storage
    • Azure Synapse
  • Blogs
  • FREE EBOOK

Az Account Clear

March 14, 2024 by Rajkishore

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
    • Syntax of Az Account Clear
    • Az Account Clear Example

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 clear

Az 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 clear

After 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

Az Account Clear

You may also like following the articles below

  • az account list

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.

Microsoft Azure
Rajkishore

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.

What is Resource Group in Azure
How to check Azure Function runtime version
Subscribe To Our YouTube Channel Subscribe to AzureLessons YouTube Channel

Recent Posts

  • Azure Front Door vs Application Gateway
  • Azure Container Apps
  • How to Check Azure App Service Logs
  • Azure Advisor vs Azure Monitor
  • How to Get Azure Function URL
  • About Us
  • Contact Us
  • Privacy Policy
  • Sitemap
© 2026 Azure Lessons