API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationReferenceGlossary

Deleting CDP tasks

When you delete a task, its records will also be deleted.

Deleting a CDP task

Procedure

  • Delete by the task ID:

    zbs-cdp job delete <id>
  • Delete by the local volume ID:

    zbs-cdp job delete_by_volume <volume_id>

Parameter description

ParameterDescription
idThe task ID.
volume_idThe local volume ID.
-v / --version <VER>Optional. Specifies the CDP protocol version (v1 or v2).

Output example

zbs-cdp job delete 1 -v v2

or

zbs-cdp job delete_by_volume 1 -v v2

Output note

If the command succeeds, no output is displayed. If the execution fails, an error message will be displayed.

Batch deleting CDP tasks

Batch deleting CDP tasks means deleting all CDP tasks in a CDP task group.

Procedure

Run the following command on any node in the cluster:

zbs-cdp job delete_by_group <group> [options]

Parameter description

ParameterDescription
groupThe CDP task group name.
-v / --version <VER>Optional. Specifies the CDP protocol version (v1 or v2).

Output example

zbs-cdp job delete_by_group group1 -v v2

Output note

If the command succeeds, no output is displayed. If the execution fails, an error message will be displayed.