ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / IMetadata Interface / DeleteMetadataContent Method
Example

In This Topic
    DeleteMetadataContent Method (IMetadata)
    In This Topic
    Delete certain content from the metadata of the current item
    Syntax
    Sub DeleteMetadataContent( _
       ByVal deleteOption As MDDeleteContentOption _
    ) 
    void DeleteMetadataContent( 
       MDDeleteContentOption deleteOption
    )

    Parameters

    deleteOption

    Return Value

    void
    Example
    Item: Delete certain content from the metadata of the current item: DeleteMetadataContent
    {
      Item featureClassWithMetadataItem = ItemFactory.Instance.Create(@"C:\projectBeta\GDBs\regionFive.gdb\SourceFeatureClass");
      //Delete thumbnail content from item's metadata
      featureClassWithMetadataItem.DeleteMetadataContent(MDDeleteContentOption.esriMDDeleteThumbnail);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also