DeleteResourceGroup
Deletes a general-purpose resource group.
Operation description
Before calling this operation, make sure that DataWorks is activated in the requested region. The Basic Edition is sufficient.
Before calling this operation, make sure that you fully understand the billing methods and pricing of DataWorks general-purpose resource groups.
Before calling this operation, make sure that the service-linked role AliyunServiceRoleForDataWorks is created.
Troubleshoot 403 errors
If AccessDeniedDetail.AuthAction in the response is dataworks:DeleteResourceGroup, troubleshoot RAM permissions by following these steps.
-
Use
PolicyTypeto determine the policy to check. ForAccountLevelIdentityBasedPolicy, check the RAM access policy of the identity used to invoke the operation. ForSessionPolicy, check the session policy attached when assuming a role. ForControlPolicy, check the control policy of the resource directory. For other types, refer to Troubleshoot access denied errors in RAM. -
Use
NoPermissionTypeto determine the rule to check. If the value isImplicitDeny, check whether theAllowrule covers the current operation, resource, and condition. If the value isExplicitDeny, check the matchedDenyrule. If it is a control policy of the resource directory, also check whether the operation is within the allowed scope.
If the response only returns a generic 403 error, the error code itself cannot distinguish between RAM permission issues and service activation issues. You can switch to the requested region in the DataWorks console and check the DataWorks edition and activation status for that region in the Purchased Resources and Services section.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:DeleteResourceGroup |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The unique identifier of the resource group. |
Serverless_res_group_524257424564736_6831777003XXXXX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| Success |
boolean |
Indicates whether the request is successful. |
true |
| RequestId |
string |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.