Clean up undeployed archives

The deployment tool provides a cleanup command that physically removes undeployed archives. This process is executed on user request.

Ensure that applications you want to remove are not running any more. You can list the running applications with "gasadmin -l".

One or more archives have been undeployed.

The cleanup operation will only remove directories in the deployment directory if:
  1. Enter the gasadmin command with the appropriate arguments.

    To clean up all undeployed archives:

    gasadmin --clean-archives
    For each undeployed archive, you are asked to confirm the cleanup by entering y to clean up, n to skip and continue to the next undeployed archive.

    By default, the results are output in text format. When the console output uses the form of an XML document, it can be easier to parse by other applications than textual output. To output in XML, specify the --xml-output option:

    gasadmin --clean-archives --xml-output

    To disable confirmation for each archive removal, add the -all option:

    gasadmin --clean-archives -all
    The exit status is a 0 (zero) in case of success, 1 in case of error.
  2. To quit the clean up, enter quit.