> ## 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/video/openapi.json post /v1/video/deletevideotask
openapi: 3.0.3
info:
  title: 视频服务 API
  description: 视频生成服务 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/video/deletevideotask:
    post:
      tags:
        - 任务管理
      summary: 删除视频任务
      description: 批量删除指定的视频任务
      operationId: deleteVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteVideoTaskRequest'
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteVideoTaskResponse'
        '400':
          description: 请求参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    DeleteVideoTaskRequest:
      type: object
      description: 删除视频任务请求
      properties:
        taskids:
          type: array
          description: 要删除的任务ID列表
          items:
            type: string
      required:
        - taskids
    DeleteVideoTaskResponse:
      type: object
      description: 删除任务响应
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/DeleteVideoTaskData'
          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
    DeleteVideoTaskData:
      type: object
      description: 删除任务响应数据
      properties:
        status:
          type: string
          description: 删除状态：Success或Failed
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API密钥认证，请在请求头中包含Authorization字段

````