Skip to main content
Data connection (formerly application data)

DeleteConnector

Deletes a connector.

Operation description

  • Resource Access Management (RAM) users must first obtain API permissions for Alibaba Cloud Model Studio (requires AliyunBailianDataFullAccess, which includes the sfm:DeleteConnector permission), and join a workspace before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest Alibaba Cloud Model Studio SDKAlibaba Cloud Model Studio SDK to call this operation.
  • This operation is not idempotent.
Throttling: This operation is throttled if called too frequently. Do not exceed 5 calls per second. If throttled, retry later.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage. Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

DELETE /{WorkspaceId}/datacenter/connector/{ConnectorId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

ConnectorId

string

Yes

The instance ID of the data connector. Obtain this from the Model Studio console.

connector-d51861492df64257

WorkspaceId

string

Yes

The workspace ID where the knowledge base resides.

llm-mbhn96xxxx

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

Schema of Response

Code

string

The error status code.

Index.InvalidParameter

Data

object

The business data field of the operation.

ConnectorId

string

The connector ID.

conn_file_e0c9db4030b2465a9478028f7d76cd92_1234

Message

string

The error message.

User not authorized to operate on the specified resource

RequestId

string

Id of the request

1C139002-0EC5-584C-A755-4B8B9FA080BE

Status

string

The status code returned by the operation.

200

Success

boolean

Indicates whether the operation was successful. Valid values:

  • true: Succeeded.

  • false: Failed.

true

Examples

Success response JSON format
{
  "Code": "Index.InvalidParameter",
  "Data": {
    "ConnectorId": "conn_file_e0c9db4030b2465a9478028f7d76cd92_1234"
  },
  "Message": "User not authorized to operate on the specified resource",
  "RequestId": "1C139002-0EC5-584C-A755-4B8B9FA080BE",
  "Status": "200",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.