> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# undeploy (GlassFish)

> Undeploys an EAR or WAR file from a running GlassFish domain. The asadmin undeploy operation has a very short timeout. As a result, this plugin allow

Undeploys an EAR or WAR file from a running GlassFish domain.

The asadmin undeploy operation has a very short timeout. As a result, this plugin allow it to try 5 times before failing. This should give enough time for most applications to complete undeployment.

If you are wondering what a GlassFish mast password is and whether you need it, the link [https://blogs.oracle.com/alexismp/entry/what\_is\_a\_glassfish\_master](https://blogs.oracle.com/alexismp/entry/what_is_a_glassfish_master) may be helpful.

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Glassfish Admin Password</td><td>`FDGF_ADMIN_PASSWORD`</td><td>Yes</td><td>The password for the administrative user.</td></tr><tr><td>Glassfish Admin Username</td><td>`FDGF_ADMIN_USERNAME`</td><td>Yes</td><td>The username for the administrative user.</td></tr><tr><td>Glassfish Admin Port</td><td>`FDGF_ADMIN_PORT`</td><td>Yes</td><td>The port of the Glassfish admin server. (e.g. `4848`)</td></tr><tr><td>Glassfish Master Password</td><td>`FDGF_MASTER_PASSWORD`</td><td>No</td><td>The Glassfish Master Password (not needed if the developer profile is used.)</td></tr><tr><td>Glassfish Home</td><td>`FDGF_GLASSFISH_HOME`</td><td>Yes</td><td>GlassFish Home Directory. (e.g. `/u01/oracle/glassfish3`)</td></tr><tr><td>Glassfish Domain Name</td><td>`FDGF_DOMAIN_NAME`</td><td>Yes</td><td>Name of the GlassFish domain to start.</td></tr></tbody></table>

# Project Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Glassfish Application</td><td>`FDGF_APPLICATION_NAME`</td><td>Yes</td><td>Name of or path to an EAR or WAR file to undeploy.</td></tr></tbody></table>

# Artifacts

This operation does not produce or consume any artifacts.

# Endpoint Selection

This operation will select all available endpoints associated to the target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.

# Special Considerations

This plugin has the following pre-requisites:

* The `JAVA_HOME` environment variable must be set to a supported JDK for the version of GlassFish being used.

* The target GlassFish server must be running prior to calling this operation.
