---
title: kpccl_egroup_destroy
description: "销毁kpccl egroup。"
url: https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_022.html
sourcePath: /source/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_022.html
indexId: 151f0f9a08d0892345528158e7b295181cf4ec341224c84dc648763bef1979a373
---
# kpccl_egroup_destroy

销毁kpccl egroup。

#### 接口定义

void kpccl_egroup_destroy(kpccl_egroup_h group);


#### 参数


**表1 参数定义**

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| group | kpccl\_egroup\_h | 需要销毁的egroup | 输入 |


#### 示例

```
#include <stdio.h>
#include "kpccl.h"
int main()
{
int executor_num = kpccl_get_num_executors();
int executors[executor_num];
for (int i =0; i < executor_num; i++) {
executors[i] = i;
}
kpccl_egroup_h egroup = kpccl_egroup_create(executors, executor_num);
kpccl_egroup_destroy
(egroup);
return 0;
}
```

上述示例演示了创建、销毁一个egroup的流程。kpccl_egroup_destroy函数销毁了一个通过kpccl_egroup_create 函数创建的egroup。
