---
title: kpccl_task_cleanup
description: "清理kpccl task。"
url: https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_033.html
sourcePath: /source/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_033.html
indexId: 90c9f9934b8262b9f51e37baa78ea68dd2a45d7cd8bc2772ac7c3a56990e784b73
---
# kpccl_task_cleanup

清理kpccl task。

#### 接口定义

void kpccl_task_cleanup(kpccl_task_h task);


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| task | kpccl\_task\_h | 需要清理的task对象 | 输入 |


#### 示例

```
#include <stdio.h>
#include "kpccl.h"
int main()
{
kpccl_task_h task = kpccl_task_create();
kpccl_task_cleanup
(task);
return 0;
}
```

上述示例演示了创建、清理一个task的流程。kpccl_task_cleanup函数将kpccl_task_create 创建的task清理。
