# 删除模型调优任务

> 全部文档的索引见 [llms.txt](https://ark.volcengine.com/llms.txt)；在任一文档页面地址后追加 `.md` 可获取该页的 Markdown 版本。

`POST https://ark.cn-beijing.volcengineapi.com/?Action=DeleteModelCustomizationJob&Version=2024-01-01`

调用本接口删除指定的模型调优任务（精调任务）。删除后任务记录不可恢复，请谨慎操作。仅支持删除处于已结束状态（如已完成、已失败、已取消）的任务；运行中或排队中的任务请先调用 [停止模型调优任务](/docs/terminate-model-customization-job-api) 终止后再删除。

## 鉴权

本接口支持鉴权方式如下，详情请参见 [Base URL 及鉴权](/docs/base-url-and-authentication)。

* Access Key 鉴权，请在 [Access Key 管理](https://console.volcengine.com/iam/keymanage) 页面，获取 Access Key。本接口仅支持 Access Key 鉴权。

---

<span id="request-parameters"></span>
## 请求参数

### Body 参数

**Id** `string` `必选` | 模型调优任务 ID

待删除的模型调优任务的 ID。可通过 [获取模型调优任务列表](/docs/list-model-customization-jobs-api) 接口查询

## 响应参数

本接口无特有的返回参数，成功时 HTTP 状态码为 `200`，返回结构中 `Result` 为空对象 `{}`。


## 代码示例

## 默认

### cURL

#### Request

```bash
curl 'https://ark.cn-beijing.volcengineapi.com/?Action=DeleteModelCustomizationJob&Version=2024-01-01' \
  -H 'Content-Type: application/json' \
  -H 'X-Date: <X-Date>' \
  -H 'X-Content-Sha256: <X-Content-Sha256>' \
  -H 'Authorization: HMAC-SHA256 Credential=<AK>/<X-Date>/cn-beijing/ark/request, SignedHeaders=content-type;host;x-content-sha256;x-date, Signature=<Signature>' \
  -d '{
  "Id": "mcj-20240***-**"
}
'
```

#### Response

```
{
  "ResponseMetadata": {
    "RequestId": "20250115163836138227026138053A18",
    "Action": "DeleteModelCustomizationJob",
    "Version": "2024-01-01",
    "Service": "ark",
    "Region": "cn-beijing"
  },
  "Result": {}
}
```
