//For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET
// initialize DocFormat
DocFormat docFormat = new DocFormat(Common.MapSourceFilePath(filePath));
// remove comments
docFormat.ClearComments();
// save file in destination folder
docFormat.Save(Common.MapDestinationFilePath(filePath));