When you delete a task, its records will also be deleted.
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
| Parameter | Description |
|---|---|
id | The task ID. |
volume_id | The local volume ID. |
-v / --version <VER> | Optional. Specifies the CDP protocol version (v1 or v2). |
Output example
zbs-cdp job delete 1 -v v2or
zbs-cdp job delete_by_volume 1 -v v2Output note
If the command succeeds, no output is displayed. If the execution fails, an error message will be displayed.
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
| Parameter | Description |
|---|---|
group | The 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 v2Output note
If the command succeeds, no output is displayed. If the execution fails, an error message will be displayed.