Delete data source¶
Remove a source from the knowledge base. The original Catalog table or files are not deleted. Before deleting, confirm that there are no processing tasks still running on the source.
DELETE $CLOUDSIGMA_API_BASE/semantic-models/{model_id}/sources/{source_row_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 knowledge base data source list to obtain the source record ID, and confirm that there are no processing tasks still running in this source. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl -X DELETE "$CLOUDSIGMA_API_BASE/semantic-models/$MODEL_ID/sources/$SOURCE_ROW_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
knowledge base ID. |
|
string |
Yes |
Source record ID. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"deleted": true
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object |
The return data of this operation. |
|
boolean |
|
Error response¶
{
"code": "ErrNotFound",
"msg": "resource not found",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Error description. |
|
null |
|