Deleting snapshots on process servers

You can delete an inactive process application snapshot on any test or production process server. The process that you use varies depending on whether you are using IBM® Business Process Manager Advanced or IBM Business Process Manager Standard. You might want to delete snapshots and their dependencies if you no longer need them or if you have concerns about space on your system.

Before you begin

To delete snapshots on process servers, ensure that you meet the following prerequisites:
  • You have administrative access to the snapshot.
  • There are no running instances
  • This topic applies only to the IBM Business Process Manager Advanced configuration.There are no running BPEL instances.
If you need more information on how to complete these prerequisites, see the related links.

Procedure

Use one of the following sequences of wsadmin commands to delete a snapshot.
Option Description
IBM Business Process Manager Advanced
  1. Run the BPMShowProcessApplication command to determine whether the snapshot exists for the process application.
  2. Run the BPMShowSnapshot command to determine the status of the snapshot, including whether it is the default snapshot and whether it is active with running instances. If the capability of the snapshot is Standard, then you should skip the remainder of the steps for the IBM Business Process Manager Advanced option and instead use the following instructions for the IBM Business Process Manager Standard option. Use the -showDependents parameter to display a list of toolkit and process application snapshots that have dependencies on the snapshot.
  3. Run the BPMDeactivate command to deactivate the snapshot.
  4. Run the BPMStop command to stop the snapshot and its running instances.
  5. Run the BPMUndeploy to undeploy the snapshot from the server. This command also uninstalls any business-level applications that are related to the snapshot.
  6. Run the BPMDeleteSnapshot command to delete the process application snapshot from the server. If you are deleting the default snapshot, you must use the -force parameter.
    When the default snapshot of a process application is deleted, the process application is removed. Toolkits that the process application depended on remain. There might be other toolkits and process applications depending on those remaining toolkits. The toolkits cannot be deleted while those dependencies exist. To delete toolkits, complete the following steps:
    1. Deactivate the toolkit snapshot of the dependency with the BPMDeactivate command.
    2. Stop the toolkit snapshot with the BPMStop command.
    3. Get a list of toolkits and process applications that have dependencies on the toolkit snapshot with the following command: BPMShowSnapshot -showDependents snapshot_name.
    4. Starting with the root of the list of reported dependencies, remove each dependency. For each dependency that you want to remove, delete the snapshot of the toolkit or process application.
    5. After you resolve all of the dependencies, delete the snapshot with the BPMDeleteSnapshot command.
IBM Business Process Manager Standard
  1. Run the BPMShowProcessApplication command to determine whether the snapshot exists for the process application.
  2. Run the BPMShowSnapshot command to determine the status of the snapshot, including whether it is the default snapshot and whether it is active, with running instances. Use the -showDependents parameter to display a list of toolkit and process application snapshots that have dependencies on the snapshot.
  3. Run the BPMDeactivate command to deactivate the snapshot.
  4. Run the BPMDeleteSnapshot command to delete the process application snapshot from the server. If you are deleting the default snapshot, you must use the -force parameter.
    When the default snapshot of a process application is deleted, the process application is removed. Toolkits that the process application depended on remain. There might be other toolkits and process applications depending on those remaining toolkits. The toolkits cannot be deleted while those dependencies exist. To delete toolkits, complete the following steps:
    1. Deactivate the toolkit snapshot of the dependency with the BPMDeactivate command.
    2. Stop the toolkit snapshot with the BPMStop command.
    3. Get a list of toolkits and process applications that have dependencies on the toolkit snapshot with the following command: BPMShowSnapshot -showDependents snapshot_name.
    4. Starting with the root of the list of reported dependencies, remove each dependency. For each dependency that you want to remove, delete the snapshot of the toolkit or process application.
    5. After you resolve all of the dependencies, delete the snapshot with the BPMDeleteSnapshot command.