InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.0: About user assistance >
6.6.0.2: Command line administration >
6.6.0.2.2: WebSphere Control Program (wscp) >
6.6.0.2.2.4: Example wscp commands, procedures, and scripts >
6.6.0.2.2.4.5: Removing objects and applications

6.6.0.2.2.4.5: Removing objects and applications

The wscp remove operation removes objects (and all references to those objects) from the domain. A live repository object must be stopped before being removed. The syntax of the remove operation is as follows:

object_type remove  object_name  [-recursive]

If the object to be removed contains other objects, removal fails unless you use the -recursive option. The -recursive option removes all instances of any object type that belongs to the containment hierarchy of the object instance being removed. For example, if a node instance is removed recursively, any object instance belonging to the containment hierarchy of the node object is also removed. The recursion takes place in a downward direction (removal of object instances below the specified object in the hierarchy).

The following example command recursively removes components of an application server named AppServ:

wscp> ApplicationServer remove /Node:AppNode/ApplicationServer:AppServ/ -recursive
Go to previous article: 6.6.0.2.2.4.4: Displaying information about objects Go to next article: 6.6.0.2.2.4.6: Importing and exporting a configuration by using XMLConfig

 

 
Go to previous article: 6.6.0.2.2.4.4: Displaying information about objects Go to next article: 6.6.0.2.2.4.6: Importing and exporting a configuration by using XMLConfig