---
title: "删除产物库中的文件"
method: DELETE
path: "/artifacts"
tags: ["会话"]
---

# 删除产物库中的文件

`DELETE /artifacts`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/artifacts`
- Auth: API key in header `Authorization`

删除产物库中的一个文件。产物库一行代表一个文件的最新版本，默认连同该文件在本会话中的所有历史版本一并删除

## Query parameters

- `session_id` string, required
- `message_id` string, required
- `index` integer, required
- `all_versions` boolean

## Response `200`

OK

- object

## Other responses

- `404`: Not Found

## Changes

- **2026-10-14** `a1c41ab134cc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/artifacts/delete.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/685d1f9fce30?raw)
