ArcGIS Pro 3.2 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
    void DeleteMetadataContent( 
       MDDeleteContentOption deleteOption
    )
    Sub DeleteMetadataContent( _
       ByVal deleteOption As MDDeleteContentOption _
    ) 

    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
    await QueuedTask.Run(() => featureClassWithMetadataItem.DeleteMetadataContent(MDDeleteContentOption.esriMDDeleteThumbnail));
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also