Undeploy

You can undeploy application archives that are running on an engine by REST method by submitting a cURL expression to the Silver Fabric broker. You must know the Engine-Id, Engine-Instance, and the full application ArchiveName.

curl -u UserName:Password 
     -X POST 
     -H "Accept:application/json" 
     -H "Content-type: multipart/form-data" \ 
     -v "http://<YourSFBroker.com>:<port>/livecluster/rest/v1/sf/engines/{engine-id}/{engine-instance}/archives/{appname}/undeploy"
     -F "DeleteApp=true"

Refer to the Start method for a description on how to obtain the values of {engine-id}, {engine-instance}, and{appname}.

DeleteApp
(Optional - for use with undeploy only) The default value is false and it can be omitted. When the DeleteApp parameter is false, an undeploy archive action leaves the application configurations of global variables and bindings so that they can be used again. The archive and the application are only undeployed and not deleted.

Setting DeleteApp to true deletes the application and the associated variable settings from the runtime engine after the archive is undeployed.

Tip: For more information on REST methods, including parameters and return responses, see the online REST help in the Silver Fabric Enabler for TIBCO BusinessEvents Administration Tool. For information on using REST services, see "Using REST Services" in the Silver Fabric Enabler for TIBCO BusinessEvents Developer’s Guide.