Reference > ANT targets > Ant targets: Removing configuration targets
ANT target: RemoveInstance
RemoveInstance removes the WCS instance configuration completely such as...
- site data
- bootstrap data
- schema
- application
- Web server configuration (IBM HTTP server only)
- instance configuration files
The following sub-targets are run to completely remove the WCS instance.
Calls:
- RemoveCommerceServer
- RemoveWorkspaceComponentConfiguration
- RemoveHTTPService
- UnregisterInstance
- RemoveInstanceDir
Prerequisites:
The createInstance.properties file must exist for this ANT target to work.
Required parameters:
- instance
- The name of the WCS instance with which you are working (for example, demo).
Example
WC_INSTALL/bin/config_ant.sh -DinstanceName=instance RemoveInstance
Recovering from errors
- Review the output of the ANT command.
- Identify which step (ANT target) failed.
- Resolve the problem.
- Follow the recovery instructions in the failed target.
- Run the remaining targets.
The following type of error may be encountered when removing the WCS instance using the config_ant.sh script:
WASX7017E: Exception received while running file "/WCS70/config/deployment/scripts/uninstallEar.jacl"; exception information: com.ibm.websphere.management.exception. ConfigServiceExceptioncom.ibm.websphere.management.exception. ConnectorException org.apache.soap.SOAPException:[SOAPException: faultCode=SOAP-ENV:Client; msg=READ TIMED UT; targetException= java.net.SocketTime outException: READ TIMED OUT]
WASX7309W: No "save" was performed before the script "/WCS70/Config/deployment/scripts/uninstallEar.jacl"exited; configuration changes will not be saved.
If this error is encountered...
- Edit... WC_PROFILE/properties/soap.client.props
- Search for the com.ibm.SOAP.requestTimeout entry, and set the value to 6000...
com.ibm.SOAP.requestTimeout=6000
- Stop and restart the WebSphere Application Server profile.
- Follow the recovery instructions in the failed target.
- Execute the rest of the targets.
Related concepts
RemoveWorkspaceComponentConfiguration
ANT targets