# How to Remove OSLC Links from an Artifact?

**URL:** <https://forum.open-services.net/t/how-to-remove-oslc-links-from-an-artifact/634>\
**Category:** Lyo\
**Created:** [June 17, 2022, 7:56pm UTC](https://forum.open-services.net/t/how-to-remove-oslc-links-from-an-artifact/634 "2022-06-17T19:56:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danchirillo](https://forum.open-services.net/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@danchirillo](https://forum.open-services.net/u/danchirillo)\
**Post date:** [June 17, 2022, 7:56pm UTC](https://forum.open-services.net/t/how-to-remove-oslc-links-from-an-artifact/634/1 "2022-06-17T19:56:57Z")

</div>

I’m writing OSLC client code with Lyo 2.4.0 that needs to create and remove links between artifacts in DNG and RQM version 6.0.6.

Creating links is not an issue. Removing them from DNG (but not RQM) is turning out to be tricky.

I’m removing links by invoking `TestCase.setValidatesRequirments()` and `Requirement.setValidatedBy()` with the new set of artifacts I want to have links to. In my current use case, it’s an empty `Link` array (since I’m removing all links).  
What I’m struggling with is that after updating the test case, the link to the requirement is removed, but after updating the requirement, the link to the test case is still present, even though DNG returns a 200. There are no errors in the server log.

---

<div class="post-metadata">

**Author:** ![jad](https://forum.open-services.net/user_avatar/forum.open-services.net/jad/32/42_2.png) [@jad](https://forum.open-services.net/u/jad)\
**Post date:** [June 28, 2022, 10:13pm UTC](https://forum.open-services.net/t/how-to-remove-oslc-links-from-an-artifact/634/3 "2022-06-28T22:13:19Z")

</div>

Hi danchirillo,

Good to start with working out if the issue is in your client or in DNG.  
Can you output the actually RDF content you are posting (PUT) to DNG? Can you confirm that that content does not have the link to the test case anymore?

---

<div class="post-metadata">

**Author:** ![danchirillo](https://forum.open-services.net/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@danchirillo](https://forum.open-services.net/u/danchirillo)\
**Post date:** [June 29, 2022, 1:45pm UTC](https://forum.open-services.net/t/how-to-remove-oslc-links-from-an-artifact/634/4 "2022-06-29T13:45:51Z")

</div>

Hi Jad,

I have been trying to figure out how to get the raw RDF content, but have been unsuccessful. Any pointers?

---

<div class="post-metadata">

**Author:** ![jad](https://forum.open-services.net/user_avatar/forum.open-services.net/jad/32/42_2.png) [@jad](https://forum.open-services.net/u/jad)\
**Post date:** [July 19, 2022, 3:54pm UTC](https://forum.open-services.net/t/how-to-remove-oslc-links-from-an-artifact/634/5 "2022-07-19T15:54:27Z")

</div>

Hi

See this recent post about a similar problems with DNG

> [@HTTP call for adding link to requirement](https://forum.open-services.net/t/http-call-for-adding-link-to-requirement/198):
>
> How do I add a link, e.g. a ‘link to’, to an existing requirement? Please answer with Java code example.
