Warning: Do not execute the cleanup script when the server is running. Server should be shutdown before executing the cleanup scripts.
If you are using the clean-up scripts to delete the active process instances, stop the server before executing the clean-up scripts.
BPEL cleanup scripts
BPEL cleanup scripts are used to clean up the both completed bpel instances and human tasks. Scripts can be found under the BPS_HOME/repository/samples/resources/cleanup-scripts/bpel folder.
BPMN cleanup scripts are used to clean up the completed bpmn instances. Scripts can be found under the BPS_HOME/repository/samples/resources/cleanup-scripts/bpmn folder