When the GlassFish application server is running, you can undeploy, enable, and disable an application or module in the Services window of the IDE. By default, applications and modules are automatically registered, deployed and made available on the server when you run a project, and are automatically redeployed when they have been modified in the IDE.
Deployed applications are visible in the Services window under the server instance node under the Applications node. Deployed EJB Modules are visible in the EJB Modules node. When you undeploy an application or module, the archive file (ear, war, jar) is removed from the server and is no longer visible in the Services window.
To undeploy an application or module: