azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

Delete all resources matching a regex in a resourceGroup

Open naksh9619 opened this issue 7 years ago • 3 comments

Query/Question Is there any way to delete the resources matching a regex from a resource group or any way to delete all the resources present inside a resource Group? The maximum I could find was getting all Vms, Network Interfaces etc separately and then deleting the resources separately matching my regex. Is there any other way to do so?

Setup

  • OS Type: Linux/MacOS
  • IDE : IntelliJ
  • Java version: 1.9

naksh9619 avatar Mar 22 '19 14:03 naksh9619

Thank you for opening this issue! We are routing it to the appropriate team for follow up.

kurtzeborn avatar Mar 25 '19 18:03 kurtzeborn

+1

singhania avatar Mar 26 '19 05:03 singhania

hi @naksh9619 You're using the right approach. SDK doesn't provide regex matching on resource name, it should be in application code. Main consideration is cautious on deletion. will close the issue for now. Feel free to open new issue if any other ask.

yungezz avatar Aug 03 '20 02:08 yungezz