Sun GlassFish Enterprise Server v3 Quick Start Guide

ProcedureTo Undeploy the Sample Application Automatically

    Change to the domain's autodeploy directory.

    cd as-install/domains/domain-name/autodeploy

    Use the rm command to undeploy and remove the application.

    rm hello.war

    Use del instead of rm on Windows systems.