Delete a workspace

Delete the specified workspace. After success, confirm the deletion result through Query workspace list.

HTTP
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.

Shell
curl -X DELETE "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY"

Parameter

Type

Required

Description

id

string

Yes

The workspace ID to be deleted.

Successful response

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

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

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.

JSON
{
  "code": "ErrWorkspaceNotFound",
  "msg": "工作区不存在",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

data

null

The error response is null.

Last updated on