The undeploy target

EAServer executes this target one time only when you undeploy a J2EE archive. The target executes when undeploy with the Management Console or the undeploy utility. You can use this target to undo configuration done in the deploy target.

To add your own tasks that execute as part of the undeploy target, embed a Sybase user configuration file in the J2EE archive. Inside that build file, run the tasks in a target named undeploy-user.