Add a Delete Metadata button to ArcCatalog

303
2
04-09-2010 01:20 AM
Status: Open
NicoBurgerhart1
New Contributor II

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.

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