4.1.14. undeploy

Description

Removes a deployed bundle from an environment.

Usage

bw undeploy NAME ENV_PATH

  • NAME is the name of the deployed bundle.
  • ENV_PATH points to the environment containing NAME.

Ant Usage

<bw.undeploy name="${name}" environment="${environment}" />

Examples

# Undeploy a custom app from the 'dev' environment
bw undeploy hello /local/dev
# Undeploy a tomcat instance from the 'prod' environment
bw undeploy tomcat01 /var/env/prod

Notes

  • This command prompts for confirmation.
  • There is no need to specified a version when undeploying, since an environment contains only one bundle version per name.
  • If a bundle was deployed under a different name, that name is used when undeploying (see Tomcat example above).
  • This command should be executed with care, as it removes all configuration, logs, and other runtime data for a deployed bundle.