Select to view content in your preferred language

How to Delete A Layer From ArcGIS Server Map Service or Feature Service

1336
5
Jump to solution
04-19-2018 10:22 AM
BehrouzHosseini
Occasional Contributor

Using ArcGIS Server 10.4.1 I have a published service which looks like

enter image description here

Can you please let me know how I can delete a Layer like Pole(10) from the service?

0 Kudos
1 Solution

Accepted Solutions
JonathanQuinn
Esri Notable Contributor

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 

View solution in original post

0 Kudos
5 Replies
JonathanQuinn
Esri Notable Contributor

You'll need to remove the layer from the map document used to publish the service and then overwrite the existing service.

0 Kudos
BehrouzHosseini
Occasional Contributor

Hi Jonathan

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 

0 Kudos
JonathanQuinn
Esri Notable Contributor

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 

0 Kudos
BehrouzHosseini
Occasional Contributor

Thanks this was what I was missing

0 Kudos
MicahBabinski
Regular Contributor

Good afternoon,

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.

Micah