Updated on 2025-09-19 GMT+08:00

Deleting a DR Task

Function

This API is used to delete a DR task.

You can delete a DR task when DR Status is Creation failed, Not started, Startup failed, Stopped, Stop failed, or Abnormal.

Data cannot be synchronized after a DR task is deleted, and the deleted task cannot be restored.

This function is available only for DWS 2.0 clusters.

Calling Method

For details, see Calling APIs.

URI

DELETE /v2/{project_id}/disaster-recovery/{disaster_recovery_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. To obtain the value, see Obtaining a Project ID.

Constraints

N/A

Range

N/A

Default Value

N/A

disaster_recovery_id

Yes

String

Definition

Cluster ID. For details about how to obtain the value, see Obtaining the Cluster ID.

Constraints

N/A

Range

N/A

Default Value

N/A

Request Parameters

None

Response Parameters

Status code: 200

The request for deleting the DR task submitted.

None

Example Requests

DELETE https://{Endpoint}/v2/89cd04f168b84af6be287f71730fdb4b/disaster-recovery/b5c45780-1006-49e3-b2d5-b3229975bbc7

Example Responses

Status code: 200

The request for deleting the DR task submitted.

{ }

Status Codes

Status Code

Description

200

The request for deleting the DR task submitted.

400

Request error.

401

Authentication failed.

403

You do not have required permissions.

404

No resources found.

500

Internal server error.

503

Service unavailable.