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/.
Status
Optional.
Syntax
--asset-dir-path=<resource-reference>
Default value
No default.
--cpd-scope The IBM Software Hub space, project, or catalog scope. For example, cpd://default-context/spaces/7bccdda4-9752-4f37-868e-891de6c48135.
Status
Optional.
Syntax
--cpd-scope=<cpd-scope>
Default value
No default.
--output-file Specify the file path to where the identifiers of pipelines, jobs, and job runs are saved after the artifacts are deleted.
Status
Required.
Syntax
--output-file=<output-file-location>
Default value
No default.
Input type
string
--pipeline-id Specify a pipeline from where to delete pipeline run execution cache data.
Status
Optional.
Syntax
--pipeline-id=<pipeline-identifier>
Default value
No default.
Input type
string
--project-id Specify an IBM Software Hub project instance.
Status
Optional.
Syntax
--project-id=<project-id>
Default value
No default.
Input type
string
Valid values
A valid project identifier.
--recursive Delete caches for pipelines that are used by jobs in this flow run.
Status
Optional.
Syntax
--recursive
Default value
False.
Input type
Boolean.
--retention-time All the artifacts older than the specified retention period are deleted. Retention time is defined as time now - job run creation date.
Status
Optional.
Syntax
--retention-time=<placeholder-text>
Default value
-1
Input type
string
--space-id Specify a space identifier.
Status
Optional.
Syntax
--space-id=<space-identifier>
Default value
No default.
Input type
string
--verbose Display detailed processing information.
Status
Optional.
Syntax
--verbose
Default value
False.
Input type
boolean
Valid values
False|True