---
title: 函数：destroy_config_handle
description: "销毁通过acl.mdl.create_config_handle接口创建的aclmdlConfigHandle类型的数据。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/aclpythondevg_01_0161.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/aclpythondevg_01_0161.html
indexId: 90e9612837a669aa2f18f20f705740e29c775575829c162ea63d86f9b0add78975
---
# 函数：destroy_config_handle

#### 功能说明

销毁通过acl.mdl.create_config_handle接口创建的aclmdlConfigHandle类型的数据。


#### 函数原型

- C函数原型
  1 aclError aclmdlDestroyConfigHandle(aclmdlConfigHandle *handle)

- python函数
  1 ret = acl.mdl.destroy_config_handle(config_handle)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| config\_handle | int，待销毁的aclmdlConfigHandle类型的指针地址。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| ret | int，错误码，返回0表示成功，返回其它值表示失败。 |
