1

Removing metadata from shapefiles is fairly easy, since they are stored in a seperate xml file.

How can I remove or reset all metadata in a FileGeoDatabase (*.gdb)?

3
  • The only way to corrupt metadata like that would be to create a new feature class with the same field names/types, copy the rows, drop the original, and rename the clone.
    – Vince
    Commented Apr 18, 2016 at 10:37
  • 2
    I am assuming you mean the geoprocessing history? There is a tool for that: arcpy.ClearWorkspaceCache_management(). If I am wrong, I guess you could always import a blank metadata file using import desktop.arcgis.com/en/arcmap/10.3/tools/conversion-toolbox/… Commented Apr 21, 2016 at 5:20
  • Sadly arcpy.ClearWorkspaceCache_management() only works with SDE not with *.gdb.
    – EikeMike
    Commented Feb 3, 2017 at 14:02

1 Answer 1

0

Thanks and 1up for your idea, Ben S Nadler. Using the following function to import an blank metadata file does the trick for me.

arcpy.ImportMetadata_conversion()

1
  • Has anyone tried this method on a large dataset? I have a FGDB with 400+ layers (vector and raster) and was curious if anyone else experienced any problems replacing all the metadata with a blank metadata file. Some odd reason it kills ArcCatalog for me. I am simply trying to remove all the metadata from the FGDB. I miss using the simpler Personal GeoDatabase (PGDB) as you could remove all the metadata with a couple of clicks going through the MS Access tables (back end).
    – spaulson2
    Commented Jun 23, 2016 at 21:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.