Delete Route Target Group
Operation description
- The DeleteRouteTargetGroup interface is an asynchronous API, meaning the system will return a request ID, but the route target group has not yet been successfully deleted as the deletion task is still in progress in the background. You can call ListRouteTargetGroup to query the deletion status of the route target group:
- When the route target group is in the Deleting state, it indicates that the route target group is being deleted.
- If you cannot find the specified route target group, it means the route target group has been successfully deleted.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RouteTargetGroupId | string | Yes | The ID of the route target group instance. | rtg-xxxx |
| RegionId | string | Yes | The region ID of the resource group to be modified. You can obtain the region ID by calling the DescribeRegions interface. | cn-hangzhou |
| ClientToken | string | No | Client token used to ensure idempotence of the request. This value should be generated by the client and must be unique across different requests, with a maximum length of 64 ASCII characters. Note
If you do not specify this, the system automatically uses the RequestId from the API request as the ClientToken identifier. The RequestId for each API request may differ.
| d7d24a21-f4ba-4454-9173-b3**** |
| Tag | array<object> | No | Tags of the resource. | |
| object | No | List of tags. | ||
| Key | string | No | Tag key of the resource. Supports up to 20 tag keys. If you need to pass this value, you cannot input an empty string. A tag key supports a maximum of 128 characters and cannot start with | FinanceDept |
| Value | string | No | Tag value of the resource. Supports up to 20 tag values. If you need to pass this value, you can input an empty string. Supports a maximum of 128 characters and cannot start with | FinanceJoshua |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | ResourceNotFound.RouteTargetGroup | The specified resource of %s is not found. | The specified resource% s does not exist. |
| 400 | IncorrectStatus.RouteTargetGroup | The status of %s [%s] is incorrect. | The current state of the RouteTargetGroup prohibits the operation. |
| 400 | DependencyViolation.RouteEntry | The specified resource of %s depends on %s, so the operation cannot be completed. | - |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2026-01-04 | Add Operation | View Change Details |
