Deleting a local mapping service by using the command line

You can delete a local mapping service by using the wsadmin tool.

Before you begin

Before you delete a local mapping service, ensure that you have detached the service map attached to that local mapping service. See Detaching a service map from a local mapping service by using the command line.

About this task

You can delete a local mapping service by using wsadmin commands or by using the administrative console, as described in Deleting a local mapping service by using the administrative console.
Note: You can delete more than one local mapping service at a time.

Procedure

  1. Launch wsadmin by starting the wsadmin scripting tool.
  2. Use the deleteLMService command to delete a local mapping service that has been created, as the following example shows:
    Using Jython:
    AdminTask.deleteLMService("StockQuoteService")
    The system removes the local mapping service.
  3. Use the listLMServices command to display a list of installed local mapping services in the cell, to check that the local mapping service was deleted:
    AdminTask.listLMServices()
  4. Save your configuration changes by using the following command:
    AdminConfig.save()
  5. Synchronize the nodes. Use the syncActiveNodes script in the AdminNodeManagement script library to synchronize each active node in your environment, as the following example demonstrates:
    AdminNodeManagement.syncActiveNodes()

Results

You have deleted the selected local mapping service.

What to do next

If necessary, you can uninstall the service map that you have deleted; see Uninstalling a service map by using the command line.

Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Tuesday, 22 April 2014
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-iseries&topic=tsm_deletelmservice
File name: tsm_deletelmservice.html