Add a delete metadata button to ArcGIS Pro

1000
5
06-09-2022 09:16 AM
Status: Under Consideration
Labels (1)
DuncanHornby
MVP Notable Contributor

When editing metadata in ArcGIS Pro the Manage Mapping tab shows a variety of tools for working with the metadata. There appears to be no way of simply removing all metadata or resetting it to blank values appropriate for the source format for a selected item in the catalog.

It would be very useful to have a button in the Metadata group on the ribbon that is clear all metadata.

 

DuncanHornby_0-1654790865736.png

 

I'm aware of some basic metadata data manipulation using arcpy but if your dataset has inherited geoprocessing logs these are difficult to remove when you have hundreds of entries.

I've seen old threads pertaining to ArcMap and using the Import Metadata tool with a blank path as a way of overwriting the metadata with nothing (an acceptable solution) but the importMetadata() functions simply throws an error for ArcGIS Pro.

Tags (2)
5 Comments
NicoBurgerhart1

If I want to delete existing metadata, the only way is importing an empty XML document...
I would like a Delete Metadata button on the Metadata toolbar in ArcCatalog.

DuncanHornby
You could make a button in ArcCatalog and then attach the code in this example to achieve this...
jcokin1
See the following ESRI knowledge base article to delete all metadata BUT this only works using a Personal Geodatabase (.mdb) and NOT a File Geodatabase (.gdb)

How To:  Delete metadata created with ArcCatalog
http://support.esri.com/en/knowledgebase/techarticles/detail/18129

Has anyone tested (ArcGIS 10.1) the code sample that Hornbydd posted in his comment back in 2011?

That piece of ESRI code dates back to 2001 as a ArcObject Sample for 8.3.

Delete All Content
http://edndoc.esri.com/arcobjects/8.3/samples/metadata/deleteallcontent.htm

Just curious.
NaicongLi
Status changed to: Under Consideration
 
GIS-Cambria

Any update? This would be nice either within Pro, right click on FGDB, or a GP tool. Would be wonderful to strip metadata and anything "hidden" like GP steps/info. If I'm exporting data to a customer I don't want to include all of that detail. I know I can turn off options to track GP steps but who knows what is hidden.

Upvote!