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

DeleteMetadataContent Method (IMetadata)
Delete certain content from the metadata of the current item
Syntax
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
await QueuedTask.Run(() => featureClassWithMetadataItem.DeleteMetadataContent(MDDeleteContentOption.esriMDDeleteThumbnail));
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also