> ## 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.

# Delete Image Task

> Batch delete specified image generation tasks



## OpenAPI

````yaml /api-reference/image/openapi.json post /v1/images/deleteimagestask
openapi: 3.0.3
info:
  title: Images Service API
  description: >-
    AI Image Generation Service API - Provides various AI model image
    generation, task query and history record functions
  version: 1.0.0
  contact:
    name: API Support
servers:
  - url: https://api.tensorslab.com
    description: Development environment
security: []
tags:
  - name: Image Generation
    description: Image generation related interfaces
  - name: Task Management
    description: Task management related interfaces
paths:
  /v1/images/deleteimagestask:
    post:
      tags:
        - Task Management
      summary: Delete Image Task
      description: Batch delete specified image generation tasks
      operationId: deleteImagesTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteImagesTaskRequest'
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteImagesTaskResponse'
              examples:
                success:
                  summary: Delete success
                  value:
                    code: 1000
                    msg: Successfully
                    data:
                      status: Success
        '400':
          description: Request parameter error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    DeleteImagesTaskRequest:
      type: object
      description: Delete image task request
      properties:
        uid:
          type: string
          description: User ID (optional)
        taskids:
          type: array
          description: List of task IDs to delete
          items:
            type: string
      required:
        - taskids
    DeleteImagesTaskResponse:
      type: object
      description: Delete task response
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/DeleteImagesTaskData'
          required:
            - data
    ErrorResponse:
      type: object
      description: Error response
      properties:
        code:
          type: integer
          description: 'Error code: 9999=Error, 9000=Insufficient Credits'
        msg:
          type: string
          description: Error message
      required:
        - code
        - msg
    BaseResponse:
      type: object
      description: Base response structure
      properties:
        code:
          type: integer
          description: >-
            Response status code: 1000=Success, 9999=Failure, 9000=Insufficient
            Credits
        msg:
          type: string
          description: Response message
      required:
        - code
        - msg
    DeleteImagesTaskData:
      type: object
      description: Delete task response data
      properties:
        status:
          type: string
          description: 'Deletion status: Success or Failed'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API Key authentication, please include the Authorization field in the
        request header

````