Cleaning up deployed environments
You can clean up the IBM Spectrum LSF cluster from the environment if no longer needed. The process is in three phases:
- Destroy all the associated VPC resources and remove them from your IBM Cloud account
- Remove the workspace
- Verify that the cluster is free of running jobs or working compute nodes
Destroying resources by using the UI
- In the IBM Cloud console, navigate to Projects > project_name > Configurations > project_configuration_name > Resources tab, and click the link for the workspace, and select Actions > Destroy resources to delete all of the related VPC resources that were deployed as part of that workspace.
- If you select the option to destroy resources, decide whether you want to destroy all of them. This action cannot be undone.
- Confirm the action by entering the workspace name in the text box and click Destroy.
If successful, the Jobs view, you should see a Workspace destroy successful
message. If unsuccessful, Schematics throws an error and shows a failure status.
Deleting a workspace by using the UI
- In the IBM Cloud console, the navigate to Projects > project_name > Configurations > project_configuration_name > Resources tab, and click the link for the workspace, and select Actions > Delete workspace to delete the workspace.
- Confirm the action by entering the workspace name in the text box and click Delete.
If unsuccessful, Schematics throws an error and shows a failure status.

Verify that the cluster is free of running jobs and working compute nodes.
Verify that it is safe to destroy resources:
-
As the
lsfadmin
user, close all LSF queues and kill all jobs:badmin qclose all bkill -u all 0
-
Wait ten minutes (this value is the default idle time), and then check for running jobs:
bjobs -u all
Look for a
No unfinished job found
message. -
Check that no working compute nodes (only management nodes) are listed:
bhosts -w
If the cluster has no running jobs and no working compute nodes, then it is safe to destroy resources from this environment.
Destroying resources by using the CLI
-
Run the following command to remove your VPC resources from your workspace:
ibmcloud schematics destroy --id <workspace_ID>
You can monitor the log files to view the deletion progress of all IBM Cloud resources.
Deleting a workspace by using the CLI
-
Run the following command to delete your workspace:
ibmcloud schematics workspace delete --id <workspace_ID>
You can monitor the log files to view the deletion progress of your workspace.
If unsuccessful, Schematics throws an error and shows a failure status.
Verify that the cluster is free of running jobs and working compute nodes.
Verify that it is safe to destroy resources:
-
As the
lsfadmin
user, close all LSF queues and kill all jobs:badmin qclose all bkill -u all 0
-
Wait ten minutes (this value is the default idle time), and then check for running jobs:
bjobs -u all
Look for a
No unfinished job found
message. -
Check that no working compute nodes (only management nodes) are listed:
bhosts -w
If the cluster has no running jobs and no working compute nodes, then it is safe to destroy resources from this environment.