> ## 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.

# libraryUndeploy

> Undeploy an EAR or WAR file from Partition, Resource Group, Resource Group Template or WebLogic Cluster/Server. The following properties are used to s

Undeploy an EAR or WAR file from Partition, Resource Group, Resource Group Template or WebLogic Cluster/Server. The following properties are used to specify the location to undeploy

* `FDWLS_SERVER_OR_CLUSTER_NAME`

* `FDWLS_PARTITION`, `FDWLS_RESOURCE_GROUP`

* `FDWLS_RESOURCE_GROUP_TEMPLATE`.

Prior to WLS 12.2.1, only `FDWLS_SERVER_OR_CLUSTER_NAMES` is used. Read about the deployment options of 12.2.1 at [https://blogs.oracle.com/WebLogicServer/entry/domain\_partitions\_for\_multi\_tenancy](https://blogs.oracle.com/WebLogicServer/entry/domain_partitions_for_multi_tenancy).

# 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>Oracle Weblogic Home (WL\_HOME)</td><td>`FDWLS_WEBLOGIC_HOME`</td><td>Yes</td><td>WebLogic Home Directory. (e.g. /u01/oracle/products/fmw/wlserver)</td></tr><tr><td>Weblogic Domain Name</td><td>`FDWLS_DOMAIN_NAME`</td><td>Yes</td><td>WebLogic Domain Name.</td></tr><tr><td>Weblogic Admin Listen Address</td><td>`FDWLS_ADMIN_LISTEN_ADDRESS`</td><td>Yes</td><td>The listener address of the WLS admin server. (e.g. localhost)</td></tr><tr><td>Weblogic Admin Listen Port</td><td>`FDWLS_ADMIN_LISTEN_PORT`</td><td>Yes</td><td>The port of the WLS admin server. (e.g. 7001)</td></tr><tr><td>Weblogic Admin SSL Connection</td><td>`FDWLS_ADMIN_USE_SSL`</td><td>No</td><td>Indicates whether the admin server is using SSL.</td></tr><tr><td>Weblogic Admin User</td><td>`FDWLS_ADMIN_USER`</td><td>Yes</td><td>The user name for the WLS admin server.</td></tr><tr><td>Weblogic Admin Password</td><td>`FDWLS_ADMIN_PASSWORD`</td><td>Yes</td><td>The password for `Weblogic Admin User`.</td></tr><tr><td>Weblogic Application Install Directory</td><td>`FDWLS_BASE_INSTALL_DIRECTORY`</td><td>No</td><td>Base directory to install the WebLogic deployments from.\
\
EAR files will be copied here on Admin Server endpoint by WebLogic Plugin prior to installation.\
For example: /oracle/middleware/product/user\_projects/applications</td></tr><tr><td>Weblogic Deployment Max # of Versions</td><td>`FDWLS_VERSIONS_TO_KEEP`</td><td>No</td><td>When undeploying, if using versioning, keep how many versions? Defaults to 5.</td></tr><tr><td>Weblogic Undeployment Timeout</td><td>`FDWLS_UNDEPLOY_TIMEOUT`</td><td>No</td><td>The timeout (milliseconds) for the Weblogic undeploy operation. Defaults to 300000.</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>Weblogic Shared Library Name</td><td>`FDWLS_LIBRARY_NAME`</td><td>Yes</td><td>The name of the library to be undeployed.</td></tr><tr><td>Weblogic Partition</td><td>`FDWLS_PARTITION`</td><td>No</td><td>WLS Partition - used in WLS 12.2.1+</td></tr><tr><td>Weblogic Resource Group</td><td>`FDWLS_RESOURCE_GROUP`</td><td>No</td><td>WLS Resource Group - used in WLS 12.2.1+</td></tr><tr><td>Weblogic Resource Group Template</td><td>`FDWLS_RESOURCE_GROUP_TEMPLATE`</td><td>No</td><td>WLS Resource Group Template - used in WLS 12.2.1+</td></tr><tr><td>Weblogic Versioned Deployment</td><td>`FDWLS_USE_VERSIONS`</td><td>No</td><td>Determines whether the plugin will deploy the artifact with a version label.\
\
If `Weblogic Versioned Deployment` is true, then `FD_PROJECT_VERSION`** **will be used as the version. This allows multiple archives to be deployed at the same time.\
\
Plugin will modify `MANIFEST.MF` file if necessary.</td></tr></tbody></table>

# Artifacts

This operation doesn't consume or produce any artifacts.

# Endpoint Selection

This operation will select all available endpoints associated to the Target which have a resource type of **WLS Admin Server**. Since the admin server only runs on one server, it is expected that for a given domain, there will only be one endpoint with a resource type set to **WLS Admin Server**.

# Endpoint Execution

This operation will execute on the Admin Server endpoint selected using the WLS Admin Server resource type.

# Special Considerations

Locking occurs on the endpoint to ensure multiple configuration change are not concurrently being deployed at the same time for a domain. The lock files are located in \{Base Working Directory for the endpoint}/locks with a file name of \{Environment Code}\_\{WebLogic Domain Name}.
