Select to view content in your preferred language

Add a delete metadata button to ArcGIS Pro

06-09-2022 09:16 AM
Status: Under Consideration
Labels (1)
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.




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)

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.

You could make a button in ArcCatalog and then attach the code in this example to achieve this...
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

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

Just curious.
Status changed to: Under Consideration

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.