Delete Catalog¶
Delete the specified Catalog. Deletion is irreversible. The actual subordinate objects and users should be verified first.
POST $CLOUDSIGMA_API_BASE/catalog/delete
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the Catalog reference, but this interface currently returns an empty reference list, and this cannot be used to prove that there is no reference. Please check the actual subordinate objects and users, and then Query Catalog List to confirm the target Catalog ID. Prepare the personal access token, target workspace ID, and Catalog ID that can access the target workspace.
Reference queries currently return an empty list, which cannot be used as a basis for no one to use it or to safely delete it. Before deleting, verify the actual associated objects and business users.
Request body¶
curl -X POST "$CLOUDSIGMA_API_BASE/catalog/delete" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
"id": '"$CATALOG_ID"'
}'
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
Catalog ID to delete. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
null |
When the deletion is successful, it is fixed to |
Error response¶
{
"code": "ErrCatalogHasChildren",
"msg": "Catalog 包含下级对象"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |