Thursday 12 January 2017

arcgis desktop - Is there an arcpy tool to delete/unregister a replica geodatabase?


Seems odd but I can't find an arcpy or geoprocessing tool to delete/unregister replicas.


When you create a replica it gets registered with the GDB that the data comes from. Afterwards you can't create another replica with the same name, you must first unregister the first one. To unregister a replica after it has been created you need to right click on the GDB in ArcCatalog, chose distributed databases and then manage replicas. From there you can pick an individual replica from all the replicas in that GDB and unregister it. This is what I would like to be able to do programmatically.


There are arcpy tools to create and sync replicas but not delete. Am I just being blind or does such a tool not exist?



Answer



If you publish the GDB to ArcGIS for Server you can called the unRegisterReplica web method passing in the GUID of the Replica. I was on 10.4



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...