It is not possible to remove links to e.g. Commits with the command az boards work-item relation remove.
Seems like this command aims on removing relations with other work items, but not relations of the type ArtifactLink.
Best solution would be to hand over the relation type and the value of WorkItemsJSON["relations"][...]["attributes"]["id"] as an extra (optional) argument.
Very best solution would be to add optional removal filters such as "remove all relations to this repo" or "remove all relations to this commit", but its maybe overloaded.
It is not possible to remove links to e.g. Commits with the command
az boards work-item relation remove
. Seems like this command aims on removing relations with other work items, but not relations of the typeArtifactLink
.Best solution would be to hand over the relation type and the value of WorkItemsJSON["relations"][...]["attributes"]["id"] as an extra (optional) argument. Very best solution would be to add optional removal filters such as "remove all relations to this repo" or "remove all relations to this commit", but its maybe overloaded.
Also discussed in This SOF thread
Additional Information: This is an example JSON node to remove: