WAS v8.5 > Script the application serving environment (wsadmin) > Use the wsadmin scripting AdminConfig object for scripted administration

Remove configuration objects with wsadmin

Use this task to delete a configuration object from the configuration repository. This action only affects the configuration.

If a running instance of a configuration object exists when we remove the configuration, the change has no effect on the running instance.

  1. Start the wsadmin scripting tool.
  2. Assign the ID string that identifies the server to remove:

    Jacl:

      set s1 [$AdminConfig getid /Node:mynode/Server:myserver/]

    Jython:

      s1 = AdminConfig.getid('/Node:mynode/Server:myserver/')

  3. Remove the configuration object. For example:

    • Jacl:

        $AdminConfig remove $s1
    • Jython:

        AdminConfig.remove(s1)

  4. Save the configuration changes.

    Use the following command example to save your configuration changes:

      AdminConfig.save()


Results

The application server configuration no longer contains a specific server object. Running servers are not affected.


Related


Use the script library to automate the application serving environment using wsadmin.sh
Use the wsadmin scripting AdminConfig object for scripted administration


Reference:

Commands for the AdminConfig object using wsadmin.sh


+

Search Tips   |   Advanced Search