Delete data release¶
Delete a data publication. Deletion will affect access to related subscriptions, and you should first confirm that the publication is no longer required by the target workspace.
DELETE https://moi.matrixorigin.cn/newmoi/data-share/publishes/{id}
Preparation before calling¶
First query the data release list and confirm the release to be deleted. Prepare the personal access token, target workspace ID, and publication ID that have access to the target workspace.
The example below uses:
$AI_STUDIO_API_KEY: The actual personal access token, passed through theX-API-KeyHeader.$WORKSPACE_ID: Target workspace ID, passed throughX-Workspace-IDHeader.$PUBLICATION_ID: The publication ID to be deleted, taken from the response of query data publication list.
Request example¶
curl -X DELETE "https://moi.matrixorigin.cn/newmoi/data-share/publishes/$PUBLICATION_ID" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters¶
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
A release ID greater than |
Successful response¶
Returns 200 on success, data is null. After the deletion is completed, re-query the list to confirm that the release is no longer returned.
{
"code": "OK",
"msg": "OK",
"data": null
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
null |
Fixed to |
Error response¶
{
"code": "ErrPublishNotFound",
"msg": "数据发布不存在",
"data": null
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
|
Use the ID from the release list. |
|
|
The current identity does not have permission to delete. |
Request to grant deletion permission for data release. |
|
|
The publication does not exist or is not visible in the current workspace. |
Check release ID and workspace. |
|
|
Data publishing writing is temporarily suspended. |
Try again later. |
|
|
The server failed to delete the publication. |
Try again later. |
Follow-up operations¶
Query data release list, confirm that the target no longer appears.