Deleting a sandbox instance

If a sandbox instance is not in use, you can delete the sandbox instance to release storage.

To delete a sandbox instance, complete the following steps.

  1. If the PersistentVolumeClaim was not created by the Operator, shut down the z/OS® system to prevent the corruption of the volume contents by using a connected 3270 terminal emulator.
  2. Use one of the following ways to delete the sandbox instance.
    • Use command lines. You can delete a sandbox instance by using one of the following ways.
      • Delete by name, for example, oc delete wazisystemsandbox deb-accounting-app.
      • Delete by the file that is used to create it, for example, oc delete -f deb_developer_cr.yaml.
    • Use the Red Hat® OpenShift® web console.
      1. Select the Administrator perspective.
      2. Click Administration > Custom Resource Definitions.
      3. Filter by entering the keyword wazisandbox.
      4. Click the three dots at the right, and select View Instances.
      5. Click the three dots, and select Delete WaziSandboxSystem.
  3. (Optional) Back up the z/OS volumes that the sandbox instance uses. After the backup is complete, you can re-create your sandbox instance when needed. For more information, see Backing up or snapshot the current state of a z/OS system.