Clear-AzConfig

In this Azure PowerShell article, we will discuss the syntax and usage of the Clear-AzConfig Azure PowerShell cmdlet and we will also discuss how to use the Clear-AzConfig PowerShell command with an example.

Clear-AzConfig

You can use the Get-AzConfig PowerShell command to get all your configurations. Now, Clear-AzConfig is the PowerShell command that can help you to clear all the configuration values set by user.

Syntax

Below is the syntax of the Clear-AzConfig Azure PowerShell cmdlet.

Clear-AzConfig
Clear-AzConfig -Force

Example:

Execute the below PowerShell command that will clear all the configurations set by the user.

Clear-AzConfig

Once you will execute this command, it will prompt you with a confirmation pop-up. I clicked on the Yes button to confirm the removal process.

Clear-AzConfig PowerShell

Now, all the configs are cleared successfully. You can see the output below.

Clear-AzConfig

You can also run the below command with the force parameter to avoid the confirmation pop-up.

Clear-AzConfig -Force

Once you will execute the above command it will directly clear the configs without the confirmation pop-up.

You may also like following the below articles

Wrapping Up

In this Azure PowerShell article, we discussed the syntax and usage of the Clear-AzConfig PowerShell command with an example of how to use the Clear-AzConfig command. Thanks for reading this article !!!