Delete Catalog

Delete the specified Catalog. Deletion is irreversible. The actual subordinate objects and users should be verified first.

HTTP
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

Shell
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

id

integer

Yes

Catalog ID to delete.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": null
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data

null

When the deletion is successful, it is fixed to null.

Error response

JSON
{
  "code": "ErrCatalogHasChildren",
  "msg": "Catalog 包含下级对象"
}

Field

Type

Description

code

string

error code.

msg

string

error message.

Last updated on