//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));
// use one of the following methods
// method:1 - clear custom properties
docFormat.ClearCustomProperties();
// method:2 - clear custom properties
docFormat.DocumentProperties.ClearCustomData();
// save file in destination folder
docFormat.Save(Common.MapDestinationFilePath(filePath));