Delete link using a context menu

We do not want to delete a link on keyboard del key click. Instead, we want to display a context menu on right click of the link and ask the user if he wants to delete the link. On click of delete we should be able to delete the link programatically. Can you please tell us how to achieve this?

myDiagram.linkTemplate =
      deletable: false,
            $(go.TextBlock, "Delete"),
              click: function(e, button) {
                e.diagram.commit(function(d) {
      $(go.Shape, { toArrow: "Standard" })

Thank you for the quick reply.