title: How to delete a Linked Service in Data Factory?
body: <p>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:</p>
  
  <blockquote>
    <p>Error: Not able to delete linked service, message returned from
    service - The document cannot be deleted since it is referenced by
    staging_zone_dim.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/0UQq1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0UQq1.png" alt="Error"></a></p>
  
  <p><strong>Question</strong></p>
  
  <p>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?</p>