To undeploy the application we just deployed, log in to the GlassFish Admin Console by typing the following URL in the browser: http://localhost:4848.
Then, either click the Applications menu item in the navigation pane on the left or click the List Deployed Applications item on the administration console's home page.
Either way, should take us to the application management page:
The application can be undeployed simply by selecting it from the list of deployed applications and clicking the Undeploy button above the list of deployed applications: