The Ant target to undeploy or uninstall an application is:
build uninstallapp
and requires the following options:
The name of the server the application is installed on.
The name of the application to uninstall (as configured during install).
build uninstallapp -Dserver.name=CuramServer -Dapplication.name=Curam