' For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET
' initialize DocFormat
Dim docFormat As New DocFormat(Common.MapSourceFilePath(filePath))
' initialize DocMetadata
Dim metadata As DocMetadata = docFormat.DocumentProperties
Dim propertyName As String = "New Custom Property"
' check if property is not built-in
If metadata.ContainsKey(propertyName) Then
If Not metadata.IsBuiltIn(propertyName) Then
' remove property
metadata.Remove(propertyName)
Else
Console.WriteLine("Can not remove built-in property.")
End If
Else
Console.WriteLine("Property does not exist.")
End If
Dim isexist As Boolean = metadata.ContainsKey(propertyName)
' save file in destination folder
docFormat.Save(Common.MapDestinationFilePath(filePath))