// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (PdfDocument doc = Document.Load<PdfDocument>(Utilities.MapSourceFilePath (FilePath)))
{
// Remove Artifact by index
doc.Pages[0].Artifacts.RemoveAt(0);
// Remove Artifact by reference
doc.Pages[0].Artifacts.Remove(doc.Pages[0].Artifacts[0]);
doc.Save();
}