You can call the DeleteParameterGroup operation to delete a parameter template of an ApsaraDB RDS instance.
You can apply a parameter template to an instance to configure a number of parameters at a time. For more information, see Use a parameter template to configure the parameters of ApsaraDB RDS for MySQL instances or Use a parameter template to configure the parameters of ApsaraDB RDS for PostgreSQL instances.
- If you delete a parameter template, the instances to which the parameter template is applied are not affected.
- Before you can delete a parameter template in ApsaraDB RDS for PostgreSQL, you must apply another parameter template to the ApsaraDB RDS for PostgreSQL instances to which the parameter template is applied. You can call the DescribeParameterGroup operation to query the instances to which the parameter template is applied.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteParameterGroup |
The operation that you want to perform. Set the value to DeleteParameterGroup. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
ParameterGroupId | String | Yes | rpg-gfs**** |
The ID of the parameter template. You can call the DescribeParameterGroups operation to query the ID of the parameter template. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ParameterGroupId | String | rpg-gfs**** |
The ID of the parameter template. |
RequestId | String | 8AF26036-B254-4212-B8E4-EFBE818B7FD6 |
The ID of the request. |
Examples
Sample requests
http(s)://rds.aliyuncs.com/?Action=DeleteParameterGroup
&RegionId=cn-hangzhou
&ParameterGroupId=rpg-gfs****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteParameterGroupResponse>
<ParameterGroupId>rpg-gfs****</ParameterGroupId>
<RequestId>8AF26036-B254-4212-B8E4-EFBE818B7FD6</RequestId>
</DeleteParameterGroupResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"ParameterGroupId" : "rpg-gfs****",
"RequestId" : "8AF26036-B254-4212-B8E4-EFBE818B7FD6"
}
Error codes
For a list of error codes, visit the API Error Center.