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

# Cancel or Delete a Video Generation Task

> Cancel a queued video generation task, or delete a video generation task record.



## OpenAPI

````yaml api-reference/en/zmodelVideo/byteplus/seedance/cancel-delete-video-task.json DELETE /byteplus/api/v3/contents/generations/tasks/{id}
openapi: 3.0.1
info:
  title: Cancel or Delete a Video Generation Task
  version: 1.0.0
  description: >-
    Cancel a queued video generation task, or delete a video generation task
    record.
  license:
    name: Project License
    url: https://github.com/QuantumNous/new-api/blob/main/LICENSE
servers:
  - url: https://api.powertokens.ai
    description: Baze API server endpoint
security: []
tags:
  - name: Seedance Video
    description: Seedance series video generation capability
paths:
  /byteplus/api/v3/contents/generations/tasks/{id}:
    delete:
      tags:
        - Seedance Video
      summary: Cancel or Delete a Video Generation Task
      description: >-
        Cancel a queued video generation task, or delete a video generation task
        record.
      operationId: byteplusCancelDeleteVideoTask
      parameters:
        - name: id
          in: path
          required: true
          description: >-
            The ID of the video generation task to cancel or delete.


            The behavior of the DELETE endpoint varies by task status:


            | Current Status | DELETE Supported | Behavior | Status After DELETE
            |

            |---|---|---|---|

            | queued | Yes | Cancel task queueing, task status changes to
            `cancelled` | cancelled |

            | running | No | - | - |

            | succeeded | Yes | Delete the video generation task record;
            subsequent queries will not be supported | - |

            | failed | Yes | Delete the video generation task record; subsequent
            queries will not be supported | - |

            | cancelled | No | - | - |

            | expired | Yes | Delete the video generation task record;
            subsequent queries will not be supported | - |


            > Note: The above parameters are Query String Parameters, passed in
            the URL string.
          schema:
            type: string
      responses:
        '200':
          description: This API has no response parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
              examples:
                success:
                  summary: Successful response
                  value: {}
      security:
        - BearerAuth: []
components:
  schemas:
    EmptyResponse:
      type: object
      description: ''
      additionalProperties: false
      example: {}
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Pass `Authorization: Bearer <token>` in the request header.'

````