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

azure, azure-data-factory, azure-powershell

Solution

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

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

You may wish to append `-Force` to `Remove-AzureRmDataFactoryDataset`, which will stop the cmdlet from prompting you before deleting each dataset. Keep in mind that datasets cannot be deleted if they are being referenced by some existing pipeline.

Problem

How to remove data sets in bulk? I have many data sets but could not find an option on the UI how to delete them all, neither I could find a powershell command.

Original source