Delete multiple branch versions at once?

552
1
03-09-2022 01:20 PM
WilliamShoop
New Contributor III

We have a SQL Query that collects all the branch versions that were posted. Our next step is to take that list and delete them via a script. Is there a way to delete multiple branch versions at once? I tried using https://agsserver.domain.com/arcgis/rest/services/ServiceName/VersionManagementServer/delete and the gp tool https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/delete-version.htm, but they only delete one version at a time. 

 

Thanks in advance,

Bill

0 Kudos
1 Reply
MelissaJarman
Esri Contributor

If you are wanting to script this then getting a list and passing into the tools you mentioned is going to be your best bet. 

https://developers.arcgis.com/rest/services-reference/enterprise/delete.htm

If you use the Versions view in Pro, you can select multiple versions at once using the SHIFT or CTRL keys and delete these. 

https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/manage-branch-versions.htm

 

 

 

0 Kudos