This is an optional task. Go to the resource group in the Azure portal. Select Settings > Locks. Remove all resource locks. Run the terraform destroy command. Type yes when prompted.