Permanently deletes the specified category.
Operation description
A RAM user must obtain database permissions for Alibaba Cloud Model Studio and join a workspace before calling this operation. The required
AliyunBailianDataFullAccesspermission includes thesfm:DeleteCategorypermission. An Alibaba Cloud account can call this operation directly without authorization. Use the latest version of the Alibaba Cloud Model Studio SDK to call this operation.This operation is idempotent.
Throttling: Calls to this operation are throttled if the frequency exceeds 5 calls per second. If a call is throttled, retry it later.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sfm:DeleteCategory |
delete |
*All Resource
|
None | None |
Request syntax
DELETE /{WorkspaceId}/datacenter/category/{CategoryId}/ HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CategoryId |
string |
Yes |
The ID of the category. This is the CategoryId returned by the AddCategory operation. You can also obtain the ID on the Unstructured Data tab of the Application Data page by clicking the ID icon next to the category name. |
cate_cdd11b1b79a74e8bbd675c356a91ee3510024405 |
| WorkspaceId |
string |
Yes |
The ID of the workspace where the category is located. For more information, see How to use workspaces. |
ws_3AXoiweeTyTd03IN |
Response elements
|
Parameter |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
17204B98-xxxx-4F9A-8464-2446A84821CA |
| Data |
object |
The data returned. |
|
| CategoryId |
string |
The ID of the deleted category. |
cate_cdd11b1b79a74e8bbd675c356a91ee3XXXXXXXX |
| Status |
string |
The status code returned. |
200 |
| Success |
boolean |
Indicates whether the call was successful:
|
true |
| Message |
string |
The error message. |
workspace id is null or invalid. |
| Code |
string |
The error code. |
success |
Examples
Success response
JSON format
{
"RequestId": "17204B98-xxxx-4F9A-8464-2446A84821CA",
"Data": {
"CategoryId": "cate_cdd11b1b79a74e8bbd675c356a91ee3XXXXXXXX"
},
"Status": "200",
"Success": true,
"Message": "workspace id is null or invalid.",
"Code": "success"
}
Error codes
See for a complete list.
Release notes
See Release Notes for a complete list.