Use the deleteLMService command to delete a local mapping service.
You can delete a local mapping service only if no service map is attached to that local mapping service. If a service map is attached to the local mapping service that you are trying to delete, an error occurs.
The name of a local mapping service, as returned by the createLMService command.
None.
None
Using Jython:
AdminTask.deleteLMService('Route')
CWSMW0246I: Successfully deleted local mapping service "Route".
Using Jacl:
$AdminTask deleteLMService Route
CWSMW0246I: Successfully deleted local mapping service "Route".