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.
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
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 |
|---|
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 |
Examples
Success response
JSON format