Hi @sachin gupta ,
Thankyou for using Microsoft Q&A platform and posting your query.
As I understand your issue here, you are trying to delete linked service via DevOps pipeline , however, it's throwing error saying there is dependency on another linked service .
Although you have confirmed that you can no longer see the linked service LS_2 in the ADF workspace , could you please check the same switching to live mode in your ADF workspace and ensure LS_2 is not showing up .