Kzryzstof
Kzryzstof

Reputation: 8382

How to delete a Linked Service in Data Factory?

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.

Error

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

Answers (3)

Lansaga
Lansaga

Reputation: 21

In ADF UI, go to Manage (Left bar, briefcase with a wrench inside), and select linked services

enter image description here

After that, pass the cursor over the service you want to delete, and select the trash can logo.

enter image description here

Upvotes: 2

Kzryzstof
Kzryzstof

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

Simon Zeinstra
Simon Zeinstra

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:

enter image description here

Upvotes: 1

Related Questions