We have created a trigger which creates news item links in a different root node of the site, when a select metadata field is changed on the news item. The metadata field is a select of departments, depending on the department selected a link is created under that departmental news section. We got this part working ok.
We now need to create a trigger when the metadata field is changed, if the department is no longer selected, remove the link asset. (see attached screenshot of the trigger)
Can anyone advise what we are doing wrong in configuring this trigger to perform the removal of the link?