pipeline cleanup
delete-cache
Deletes execution cache data that is created by Watson Pipeline runs for a specific pipeline. Identifiers of pipeline whose cache data is deleted are preserved in the output file. This action applies to cache data that is stored on a mounted file system. To enable that option, specify the --assets-dir-path option. Only files from job runs that started before a specific point in time are deleted.
Syntax
cpd-cli pipeline cleanup
delete-cache \
--output-file=<output-file-location> \
[--asset-dir-path=<resource-reference>] \
[--cpd-scope=<cpd-scope>] \
[--pipeline-id=<pipeline-identifier>] \
[--project-id=<project-id>] \
[--recursive] \
[--retention-time=<placeholder-text>]
Options
Table 1: Command options
| Option | Description |
|---|---|
--asset-dir-path |
Specify the path to the mounted
assets directory. For example,
/mnt/asset_file_api/projects/{project-id}/assets/.
|
--cpd-scope |
The IBM Software Hub space,
project, or catalog scope. For example,
cpd://default-context/spaces/7bccdda4-9752-4f37-868e-891de6c48135.
|
--output-file |
Specify the file path to
where the identifiers of pipelines, jobs, and job runs are saved after the artifacts are
deleted.
|
--pipeline-id |
Specify a pipeline from
where to delete pipeline run execution cache data.
|
--project-id |
Specify an IBM Software Hub
project instance.
|
--recursive |
Delete caches for pipelines that
are used by jobs in this flow run.
|
--retention-time |
All the artifacts older than the
specified retention period are deleted. Retention time is defined as time now - job run creation
date.
|
--space-id |
Specify a space
identifier.
|
--verbose |
Display detailed processing
information.
|