Using ArcGIS Server 10.4.1 I have a published service which looks like
Can you please let me know how I can delete a Layer like Pole(10) from the service?
Yes, you're right, it will change the layer IDs for all layers, but you can hard code them within the map document:
Map authoring considerations—Documentation | ArcGIS Enterprise
You'll need to remove the layer from the map document used to publish the service and then overwrite the existing service.
what I need to do is removing the sequence of 10 (layerId) from the service but still keeping the `Surface Structure` in with layer ID 11. my understanding is if I republish the service again the new layerIDs will apply to the service layers. so I need to do this trough Server
Thanks this was what I was missing
There is a setting in the data frame properties window that allows you to specifically assign (and preserve) the index numbers for your layers:
Once you check that box, you can adjust the index numbers to your liking within the layer properties:
Hope this helps.
Retrieving data ...