You can call REST APIs to clear the lsw_deployment_package table in the
authoring environment.
Before you begin
Before you clear the deployment packages, make sure that you have Read permission or are a
repository administrator.
Procedure
- Construct a BPMCSRFToken parameter for the authoring environment
server by using POST/system/login to obtain it. Each subsequent API call requires
this header, for example:
The URL might be, for
example:
https://cpd-cp4ba.apps.cp4ba-ca.55baw.p1.openshiftapps.com/baw-bawins1/ops/system/login
You get a response such as this:
{"expiration":7200,"csrf_token":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NDI2MTA2NjcsInN1YiI6ImNwNGFkbWluIn0.8742sRV3CTHN_fY45W-29_CrqeuOqRlFWPFItCKnodI"}
The response has a csrf_token value that you can set as the parameter value.
For example, the variable $CSRF_TOKEN_HEADER is set to BPMCSRFToken:
<csrf_token_value> for the respective server.
- To delete all deployment packages for all servers, run the following API in the authoring
environment: DELETE/std/bpm/server/workflow/install_packages. Provide the
BPMCSRFToken from Step 1.
- To delete deployment packages for a particular server, run following API in the authoring
environment: /std/bpm/servers/workflow/{name}/install_packages. Provide the
BPMCSRFToken from Step 1. If it is not a generic deployment, provide the name
of the deployed server.
For more information on the Operations REST APIs, see Deployment section here
.
This topic is shared by BAW, CP4BA, CP4BASaaS. Last updated on 2025-03-13 12:15