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

# 删除图片任务

> 批量删除指定的图片生成任务



## OpenAPI

````yaml /zh/api-reference/image/openapi.json post /v1/images/deleteimagestask
openapi: 3.0.3
info:
  title: 图片服务 API
  description: AI图片生成服务 API - 提供多种AI模型图片生成、任务查询和历史记录功能
  version: 1.0.0
  contact:
    name: API Support
servers:
  - url: https://api.tensorslab.com
    description: 开发环境
security: []
tags:
  - name: 图片生成
    description: 图片生成相关接口
  - name: 任务管理
    description: 任务管理相关接口
paths:
  /v1/images/deleteimagestask:
    post:
      tags:
        - 任务管理
      summary: 删除图片任务
      description: 批量删除指定的图片生成任务
      operationId: deleteImagesTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteImagesTaskRequest'
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteImagesTaskResponse'
              examples:
                success:
                  summary: 删除成功
                  value:
                    code: 1000
                    msg: Successfully
                    data:
                      status: Success
        '400':
          description: 请求参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    DeleteImagesTaskRequest:
      type: object
      description: 删除图片任务请求
      properties:
        uid:
          type: string
          description: 用户ID（可选）
        taskids:
          type: array
          description: 要删除的任务ID列表
          items:
            type: string
      required:
        - taskids
    DeleteImagesTaskResponse:
      type: object
      description: 删除任务响应
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/DeleteImagesTaskData'
          required:
            - data
    ErrorResponse:
      type: object
      description: 错误响应
      properties:
        code:
          type: integer
          description: 错误码：9999=错误，9000=积分不足
        msg:
          type: string
          description: 错误消息
      required:
        - code
        - msg
    BaseResponse:
      type: object
      description: 基础响应结构
      properties:
        code:
          type: integer
          description: 响应状态码：1000=成功，9999=失败，9000=积分不足
        msg:
          type: string
          description: 响应消息
      required:
        - code
        - msg
    DeleteImagesTaskData:
      type: object
      description: 删除任务响应数据
      properties:
        status:
          type: string
          description: 删除状态：Success或Failed
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API密钥认证，请在请求头中包含Authorization字段

````