Reputation: 8382
I have a Data Factory pipeline that contains a bunch of Linked Services. Some of them are not used anymore and I would like to delete them. However, when I try to delete some of them, Data Factory complains that it is still used with the following error:
Error: Not able to delete linked service, message returned from service - The document cannot be deleted since it is referenced by staging_zone_dim.
Question
I made sure that no Datasets or Pipelines references it and still, I do get the error message when I try to delete the linked services. What am I missing?
Upvotes: 3
Views: 7614
Reputation: 21
In ADF UI, go to Manage (Left bar, briefcase with a wrench inside), and select linked services
After that, pass the cursor over the service you want to delete, and select the trash can logo.
Upvotes: 2
Reputation: 8382
I have been able to work around this issue by directly going to the Git repository that contained the json
files and deleting the unused configuration files.
Upvotes: 1
Reputation: 815
You should have a look in the published view of the data factory and delete the pipelines there too before deleting the linked service.
You can switch here by choosing data factory instead of Azure DevOps:
Upvotes: 1