Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete bicep template and the resources it has deployed

How can I delete or update bicep template and all the resources it has deployed? just like we can delete or update cloudformation and terraform template

az deployment commands don't have update option and while using az deployment delete it does not delete the resources

like image 206
Jazib Humayun Avatar asked Nov 29 '25 23:11

Jazib Humayun


1 Answers

az deployment commands don't have update option and while using az deployment delete it does not delete the resources

It has/does. You need to use Complete mode:

az deployment group create -f ./main.bicep -g my-rg --mode Complete

As it is written here

In complete mode, Resource Manager deletes resources that exist in the resource group but aren't specified in the template.

like image 165
Krzysztof Madej Avatar answered Dec 03 '25 05:12

Krzysztof Madej



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!