All Products
Search
Document Center

DataWorks:DeleteDataSource

Last Updated:Oct 17, 2024

Removes a data source.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DataSourceIdlongYes

The data source ID. You can call the ListDataSources operation to query the ID.

1

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

HttpStatusCodestring

The HTTP status code.

200
Databoolean

Indicates whether the data source was removed.

true
RequestIdstring

The request ID.

0bc1411515937635****
Successboolean

Indicates whether the request was successful.

true

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": "200",
  "Data": true,
  "RequestId": "0bc1411515937635****",
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
400Invalid.Tenant.ConnectionNotExistsThe connection does not exist.The connection does not exist.
400Invalid.Tenant.ProjectNotExistsThe project does not exist.The project does not exist.
400Invalid.Tenant.UserNotInProjectThe user is not in the project.The user is not in the project.
400Invalid.OperationYou cannot delete the bindingCalcEngine that is bound to the data source.Can not delete datasource bindingCalcEngine.
403Invalid.Tenant.UserIsNotProjectOwnerOrAdminThe user is not a project administrator or owner.The user is not a project administrator or owner.
403Invalid.Tenant.UserNotInTenantThe user is not in tenant.The user is not in tenant.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history