Delete a workspace¶
Delete the specified workspace. After success, confirm the deletion result through Query workspace list.
DELETE $CLOUDSIGMA_API_BASE/workspaces/{id}
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 confirm the workspace to be deleted. Prepare personal access token and workspace ID. If there are still data sharing cleanup requirements, complete the cleanup first and then delete it.
Confirm that the current identity is the workspace owner.
Path parameters¶
Replace $CLOUDSIGMA_API_KEY and $WORKSPACE_ID with actual values.
curl -X DELETE "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The workspace ID to be deleted. |
Successful response¶
{
"code": "OK",
"msg": "OK"
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
Error response¶
When there is still data published in the workspace, HTTP 409 may be returned. When the data release status cannot be confirmed, HTTP 503 may be returned.
{
"code": "ErrWorkspaceNotFound",
"msg": "工作区不存在",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
|
null |
The error response is |