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

# Cancel or delete a MiniMax task

> Cancel a queued MiniMax task or delete a completed upstream task record.



## OpenAPI

````yaml openapi/minimax-video.yaml DELETE /contents/generations/tasks/{id}
openapi: 3.1.0
info:
  title: MiniMax video API
  version: 1.0.0
  description: >-
    Provider-specific GENGEN reference for MiniMax H3 and MiniMax H3 Max video
    generation.
servers:
  - url: https://gengen.farm/api/gengen/v1
    description: Production
security:
  - bearerAuth: []
paths:
  /contents/generations/tasks/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: 'Public task ID with a minimaxh3: or minimaxh3max: prefix.'
        schema:
          type: string
        example: minimaxh3:task_123
    delete:
      summary: Cancel or delete a MiniMax task
      description: >-
        Cancel a queued task or delete a succeeded or failed upstream task
        record.
      operationId: cancelMiniMaxVideoTask
      responses:
        '204':
          description: The task was cancelled or deleted.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        default:
          $ref: '#/components/responses/UnexpectedError'
components:
  responses:
    Unauthorized:
      description: Missing or invalid GENGEN API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Task not found for the current API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnexpectedError:
      description: Upstream provider or internal error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            params:
              type: object
              additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: GENGEN API key

````