// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (DiagramDocument doc = Document.Load<DiagramDocument>(Utilities.MapSourceFilePath(FilePath)))
{
DiagramShape shape = doc.Pages[0].Shapes[0];
for (int i = shape.Hyperlinks.Count - 1; i >= 0; i--)
{
if (shape.Hyperlinks[i].Address.Contains("http://someurl.com"))
{
shape.Hyperlinks.RemoveAt(i);
}
}
doc.Save();
}