> ## 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 a Genjutsu task

Cancellation is best effort. Only a confirmed `cancelled` result releases the reservation. A task that has already completed must be retrieved and settled normally.


## OpenAPI

````yaml openapi/genjutsu-video.yaml DELETE /contents/generations/tasks/{id}
openapi: 3.1.0
info:
  title: Genjutsu video API
  version: 1.0.0
servers:
  - url: https://gengen.farm/v1
security:
  - bearerAuth: []
paths:
  /contents/generations/tasks/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
    delete:
      summary: Cancel a Genjutsu task
      operationId: cancelGenjutsuTask
      responses:
        '200':
          description: Cancellation confirmed.
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - status
                properties:
                  id:
                    type: string
                  status:
                    type: string
                    const: cancelled
        '409':
          description: Cancellation could not be confirmed.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.