Cleaning up Content-Aware Storage (CAS) data

You can use CRs to clean the data source.

Clean up the datasource

Clean up the datasource through CLI
Ensure that the following commands complete without errors.
  1. Delete the datasource:
    oc delete datasource <datasource-name>
    Note: After you delete the datasource, the respective PV, PVC, and Kafka Topic also get deleted.
  2. Delete the watch folder from Scale node:
    From Scale node, disable any watch that was created by the run:
    1. List Watches to find the ID for your fileset:
      mmwatch all list
    2. Disable the Watch with the watch-Id
      mmwatch <filesystem name> disable --watch-id  <watch id>
Clean up the datasource through user interface
To clean up the datasource through UI, perform the following steps:
  1. Open the IBM Fusion UI.
  2. Go to Content-aware Storage > Data sources.
  3. Select the data source that you want to delete.
  4. In the ellipsis overflow menu, click Remove.

Clean up the domain

To delete the Domain, run the following command:

oc delete Domain <domain-name>

Clean up the DocumentProcessor

To delete the Document Processor, run the following command:
oc delete DocumentProcessor <document-processor-name>
Note: After you delete the DocumentProcessor, the respective deployment, PVC, and Service also get deleted.