> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# 删除制品

> 删除指定制品及其版本，成功返回 JSON null

<Warning>
  此操作删除指定名称的制品及其全部版本，不是只删除最新版本。本接口不提供恢复操作，删除前应另行保存需要保留的内容
</Warning>

成功响应为 HTTP `200` 和 JSON `null`。如需确认目标，先读取该制品的版本列表与元数据


## OpenAPI

````yaml productions/api-reference/openapi/zh/harness-runtime.json DELETE /apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}
openapi: 3.1.0
info:
  title: Harness Runtime
  version: agentkit-cli 0.54.0 / SDK 0.8.0 / ADK 2.2.0
  description: >-
    AgentKit CLI 0.54.0 部署的 Harness Runtime，基于 VeADK 1.0.8、AgentKit SDK 0.8.0 与
    Google ADK 2.2.0 核验；定时任务另需启用配置
servers:
  - url: http://localhost:8000
    description: 本地服务
security:
  - {}
  - RuntimeBearer: []
tags:
  - name: 服务与应用
  - name: 会话
  - name: 智能体运行
  - name: 制品
  - name: 记忆
  - name: 评测 · 开发服务
  - name: 调试 · 开发服务
  - name: 兼容接口
  - name: Harness 定时任务
paths:
  /apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}:
    delete:
      tags:
        - 制品
      summary: 删除制品
      description: 删除指定制品及其版本，成功返回 JSON null
      operationId: harnessRuntimeDeleteArtifact
      parameters:
        - name: app_name
          in: path
          required: true
          schema:
            type: string
            title: App Name
          description: 应用名称，CLI 部署版为 harness_agent
          example: harness_agent
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            title: User Id
          description: 用户 ID
          example: user-001
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
          description: 会话 ID
          example: session-001
        - name: artifact_name
          in: path
          required: true
          schema:
            type: string
            title: Artifact Name
          description: 制品名称
          example: notes.txt
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                type: 'null'
              example: null
        '422':
          description: 请求参数验证失败
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
          description: 错误详情
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
          description: 出错字段的位置
        msg:
          type: string
          title: Message
          description: 验证错误说明
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    RuntimeBearer:
      type: http
      scheme: bearer
      description: 本地未配置网关时可不提供；云部署使用 Runtime API Key 或部署要求的用户池 JWT，不能使用模型 API Key

````