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 you remove the configuration, the change has no effect on the running instance.
Launch wsadmin and run one of the following.
Jython...
### Assign the ID string that identifies the server to remove
s1 = AdminConfig.getid('/Node:mynode/Server:myserver/')
### Remove the configuration object.
AdminConfig.remove(s1)
### Save the configuration changes.
AdminConfig.save()
### Sync node
AdminNodeManagement.syncActiveNodes()
### To sync to a specific node
### AdminNodeManagement.syncNode("myNode")Jacl
### Assign the ID string that identifies the server to remove
set s1 [$AdminConfig getid /Node:mynode/Server:myserver/]
### Remove the configuration object.
$AdminConfig remove $s1
Results
The application server configuration no longer contains a specific object. Running servers are not affected.
Related tasks
Synchronizing nodes with wsadmin
Use the script library to automate the application serving environment
Use the AdminConfig object for scripted administration
Related
Commands for the AdminConfig object