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
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