AnsweredAssumed Answered

Delete ArcGIS Server services en masse?

Question asked by cbfollettdepaul on Nov 30, 2017
Latest reply on Nov 30, 2017 by vangelo-esristaff

Let's say we've got, you know, 8 pages of services that need to be removed. That's time consuming. 


Are there ways to programmatically remove services much faster than through the GUI in Manager?


(other ways to programmatically / through scripts alter a large number of services would also be of interest, such as starting/stopping/changing pooling or other options)


Installation is ArcGIS Server 10.5 on Linux. 




This question was posed because the documentation here says only two options (Manager or ArcMap):
Delete a service—Documentation | ArcGIS Enterprise 


However Vince here, reminded me of the ArcGIS Rest API. Among other tasks and features, it does mention how to Delete Service through a POST with an admin token here:



So, I consider this question somewhat resolved, though would keep open out of interest to hear other ways people address managing services programmatically in their organization (custom scripts, etc.)