> ## Documentation Index
> Fetch the complete documentation index at: https://myco-29fc6df6-sweetmantech-myc-3925-docs-document-the-apiar.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Task

> Delete an existing scheduled task by its ID. Returns the status of the delete operation.



## OpenAPI

````yaml DELETE /api/tasks
openapi: 3.1.0
info:
  title: Recoup API
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://recoup-api.vercel.app
security:
  - apiKeyAuth: []
paths:
  /api/tasks:
    delete:
      description: >-
        Delete an existing scheduled task by its ID. Returns the status of the
        delete operation.
      requestBody:
        description: Task to delete
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteTaskRequest'
      responses:
        '200':
          description: Task deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteTaskResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DeleteTaskRequest:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the task to delete
          example: aade2bce-55c7-468e-a606-c4e76fb2ea2a
    DeleteTaskResponse:
      type: object
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - success
            - error
          description: Status of the delete operation
        error:
          type: string
          description: Error message (only present if status is error)
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).

````