Azure Data Factory - How to delete data sets in bulk?

How to delete datasets in bulk? I have many datasets, but I could not find a parameter in the user interface to delete them all, and I could not find the powershell command.

+4
source share
2 answers

While there is no such option to delete all datasets in the portal, you can do this using the PowerShell snippet:

Get-AzureRmDataFactory -ResourceGroupName <rgname> -Name <factory name> | Get-AzureRmDataFactoryDataset | Remove-AzureRmDataFactoryDataset

You might want to add -Forceto Remove-AzureRmDataFactoryDatasetthat it will stop requesting the cmdlet before deleting each data set. Keep in mind that datasets cannot be deleted if they are referenced by some existing pipeline.

+4

, ps1 script Remove-AzureRMDataFactoryDataset -force, powershell. .

0

Source: https://habr.com/ru/post/1676060/


All Articles