
# 删除代码解释器 - DeleteCoreCodeInterpreter
#### 功能介绍
删除指定的代码解释器。
#### 调用方法
请参见[如何调用API](https://support.huaweicloud.com/api-agentarts/agentarts_07_0003.html)。
#### 授权信息
账号根用户具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备如下身份策略权限，更多的权限说明请参见[权限和授权项](https://support.huaweicloud.com/api-agentarts/Permission.html)。
| 授权项                                                 | 访问级别  | 资源类型（\*为必须）        | 条件键                       | 别名 | 依赖的授权项                                                                                                                                                                                                                                                                                                                                                                                                                |
|:---|:---|:---|:---|:---|:---|
| agentarts:codeInterpreter:deleteCoreCodeInterpreter | Write | codeInterpreter \* | g:ResourceTag/\<tag-key\> | -  | - vpc:routeTables:update  - vpc:nativePorts:delete  - eip:publicIps:disassociateInstance   |
   
#### URI
DELETE /v1/core/code-interpreters/{code_interpreter_id}
表1路径参数 
| 参数                  | 是否必选 | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|:---|:---|:---|:---|
| code_interpreter_id | 是    | String | **参数解释：** 代码解释器ID，可通过[查询代码解释器列表](https://support.huaweicloud.com/api-agentarts/ListCoreCodeInterpreters.html)接口获取。 **约束限制：** 不涉及。 **取值范围：** 符合UUID正则\^\[0-9a-fA-F\]{8}-\[0-9a-fA-F\]{4}-\[0-9a-fA-F\]{4}-\[0-9a-fA-F\]{4}-\[0-9a-fA-F\]{12}$的36位字符串。 **默认取值：** 不涉及。 |
   
#### 请求参数
无
#### 响应参数
**状态码：204**
删除成功，无响应内容。
**状态码：401**
 表2响应Body参数 
| 参数         | 参数类型   | 描述                                                                                                                                                                                                                |
|:---|:---|:---|
| error_code | String | **参数解释：** 错误码。 **取值范围：** 满足正则\^AgentArts.0400\\d{4}$，例如AgentArts.04000404。 |
| error_msg  | String | **参数解释：** 错误信息。 **取值范围：** 不涉及。                                             |
   
**状态码：403**
表3响应Body参数 
| 参数                            | 参数类型                                                                                               | 描述                                                                                                                                                                                                                |
|:---|:---|:---|
| error_code                    | String                                                                                             | **参数解释：** 错误码。 **取值范围：** 满足正则\^AgentArts.0400\\d{4}$，例如AgentArts.04000404。 |
| error_msg                     | String                                                                                             | **参数解释：** 错误信息。 **取值范围：** 不涉及。                                             |
| encoded_authorization_message | String                                                                                             | **参数解释：** 编码后的授权失败信息。 **取值范围：** 不涉及。                                       |
| details                       | Array of [CoreToolsCommonError] objects | **参数解释：** 依赖的下游服务错误信息列表。 **取值范围：** 不涉及。                                    |
   
表4CoreToolsCommonError 
| 参数         | 参数类型   | 描述                                                                                                                                                                                                                |
|:---|:---|:---|
| error_code | String | **参数解释：** 错误码。 **取值范围：** 满足正则\^AgentArts.0400\\d{4}$，例如AgentArts.04000404。 |
| error_msg  | String | **参数解释：** 错误信息。 **取值范围：** 不涉及。                                             |
   
**状态码：404**
表5响应Body参数 
| 参数         | 参数类型   | 描述                                                                                                                                                                                                                |
|:---|:---|:---|
| error_code | String | **参数解释：** 错误码。 **取值范围：** 满足正则\^AgentArts.0400\\d{4}$，例如AgentArts.04000404。 |
| error_msg  | String | **参数解释：** 错误信息。 **取值范围：** 不涉及。                                             |
   
**状态码：429**
表6响应Body参数 
| 参数         | 参数类型   | 描述                                                                                                                                                                                                                |
|:---|:---|:---|
| error_code | String | **参数解释：** 错误码。 **取值范围：** 满足正则\^AgentArts.0400\\d{4}$，例如AgentArts.04000404。 |
| error_msg  | String | **参数解释：** 错误信息。 **取值范围：** 不涉及。                                             |
   
**状态码：500**
表7响应Body参数 
| 参数         | 参数类型   | 描述                                                                                                                                                                                                                |
|:---|:---|:---|
| error_code | String | **参数解释：** 错误码。 **取值范围：** 满足正则\^AgentArts.0400\\d{4}$，例如AgentArts.04000404。 |
| error_msg  | String | **参数解释：** 错误信息。 **取值范围：** 不涉及。                                             |
   
#### 请求示例
```
DELETE /v1/core/code-interpreters/9ca9f2a6-18e4-4777-b23b-8c21e978a1ad
```
#### 响应示例
**状态码：401**
认证失败。
```
{
  "error_code" : "AgentArts.04000401",
  "error_msg" : "Authentication failed: invalid token."
}
```
**状态码：403**
权限不足。
```
{
  "error_code" : "AgentArts.04000403",
  "error_msg" : "Authentication failed: you have no permission of XXX",
  "encoded_authorization_message" : "eyJlcnJvciI6ICJVbmF1dGhvcml6ZWQifQ==",
  "details" : [ {
    "error_code" : "AgentArts.04000403",
    "error_msg" : "Authentication failed."
  } ]
}
```
**状态码：404**
资源不存在。
```
{
  "error_code" : "AgentArts.04000404",
  "error_msg" : "resource xxx not exist"
}
```
**状态码：429**
请求频率超限。
```
{
  "error_code" : "AgentArts.04000429",
  "error_msg" : "The interface has been limited."
}
```
**状态码：500**
内部系统错误。
```
{
  "error_code" : "AgentArts.04000500",
  "error_msg" : "Internal error"
}
```
#### 状态码
| 状态码 | 描述          |
|:---|:---|
| 204 | 删除成功，无响应内容。 |
| 401 | 认证失败。       |
| 403 | 权限不足。       |
| 404 | 资源不存在。      |
| 429 | 请求频率超限。     |
| 500 | 内部系统错误。     |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-agentarts/ErrorCode.html)。
