Select to view content in your preferred language

Unregister from replica in arcpy

1180
3
Jump to solution
09-11-2020 09:18 AM
DanMarks
Esri Alum

I have been tasked with writing a python that will unregister selected datasets from a replica.  Basically, I was given a screenshot from ESRI's manage replica pane documentation and asked to write a script the did "Unregister from replica" automatically.  I haven't been able to find anything in arcpy that can do this.  Has anyone else had success in this field?  

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

Just going by the help topics, so I presume you have gone through

Replica—ArcGIS Pro | Documentation 

only to find you can list the properties

ListReplicas—ArcGIS Pro | Documentation 

to see that everything in arcpy is readonly

You might want to check out some of these ArcGIS Ideas

Unregister Replication via Arcpy and ArcToolbox Tool   looks like what you want

The rest of the tools in Arctoolbox don't seem to fit what you need specifically

Unregister Replica (Data Management)—ArcGIS Pro | Documentation 


... sort of retired...

View solution in original post

3 Replies
DanPatterson
MVP Esteemed Contributor

Just going by the help topics, so I presume you have gone through

Replica—ArcGIS Pro | Documentation 

only to find you can list the properties

ListReplicas—ArcGIS Pro | Documentation 

to see that everything in arcpy is readonly

You might want to check out some of these ArcGIS Ideas

Unregister Replication via Arcpy and ArcToolbox Tool   looks like what you want

The rest of the tools in Arctoolbox don't seem to fit what you need specifically

Unregister Replica (Data Management)—ArcGIS Pro | Documentation 


... sort of retired...
DanMarks
Esri Alum

Seems like the Ideas post is about the closest thing out there.  I hadn't expected a full solution but it's nice to know I'm not alone at least.  Thanks.  

0 Kudos
ReedHunter
Regular Contributor

You probably have long had this written by now.  For those interested in a similar script, I have posted a batch replica unregistration script on geonet.

0 Kudos