H Bala H Bala - 3 months ago 13
PowerShell Question

Deleting Logic Apps with PowerShell iteratively

I have created 20+ logic apps with RM template, but I would like to remove them. Is there a PowerShell approach feasible to fetch logic apps under a resource group name and delete iteratively.

Answer

You should be able to do this with the following pipeline and may add additional filters to it.
As soon as you see the correct set of Logic Apps being processed, just remove the -WhatIf.

Login-AzureRmAccount
Get-AzureRmResource -ResourceGroupName 'yourGroupName' -ResourceType 'Microsoft.Logic/workflows' | Remove-AzureRmResource -WhatIf
Comments