Delete data release¶
Delete a data publication. Deletion will affect subscriber access. You should first confirm that the target workspace no longer needs the publication.
DELETE $CLOUDSIGMA_API_BASE/data-share/publishes/{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 query the data release list and confirm the release to be deleted. Prepare the personal access token, target workspace ID, and release ID that can access the target workspace.
Request parameters¶
curl -X DELETE "$CLOUDSIGMA_API_BASE/data-share/publishes/$PUBLICATION_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
Release ID greater than |
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": "ErrPublishNotFound",
"msg": "数据发布不存在",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Error description. |
|
null |
Empty on error. |