Modify Link in Actions

What is the best way to modify a link when using an Action in Foundry? In reality I would like to delete an existing link and create a new one. Is this supported, outside of creating a function?

Assuming it is a many-to-many link, you could simply have one rule for each of the 2 steps you mentioned: