undeploy

This command undeploys a component from the server.

Syntax

zosadmin undeploy      [--session=] component|dir

Arguments

component|dir

Specify the deployed file or a directory containing the deployed files.

Options

-i=, --session=

Specify the deployment session ID.

-v, --verbose

Turn on verbose output during this operation.

-V, --debug

Turn on debug output during this operation.

-h, --help

Display a help message for this operation.

Examples

Example 1

To undeploy the service myservice.sar, use the following command:

zosadmin undeploy myservice.sar

Example 2

To undeploy the job file quickie.job from the server, use the following command:

zosadmin undeploy quickie.job

Example 3

To undeploy the job files in directory /test/myjob.job, use the following command:

zosadmin undeploy quickie.job