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

# Delete Download Job

> Cancel or delete a download job

Cancel or delete a download job. Once deleted, the download job record is removed and cannot be recovered.

<CodeGroup>
  ```python Python theme={null}
  import requests

  response = requests.delete(
      "https://api.videodb.io/download",
      headers={"x-access-token": "your_api_key"},
      json={"download_id": "download-abc123"}
  )

  result = response.json()
  if result.get('success'):
      print("Download job deleted successfully")
  else:
      print("Failed to delete download job")
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
      "https://api.videodb.io/download",
      {
          method: "DELETE",
          headers: {
              "x-access-token": "your_api_key"
          },
          body: JSON.stringify({
              download_id: "download-abc123"
          })
      }
  );

  const result = await response.json();
  if (result.success) {
      console.log('Download job deleted successfully');
  } else {
      console.log('Failed to delete download job');
  }
  ```
</CodeGroup>

<Warning>
  * Deletion removes the download job record permanently
  * Cannot recover deleted jobs or their associated data
  * If download is still processing, it will be cancelled
  * Already completed downloads will have their records removed from your download history
</Warning>

<CardGroup cols={2}>
  <Card title="Get Download Status" icon="search" href="/api-reference/downloads/get_download">
    Check download status before deleting
  </Card>

  <Card title="List Downloads" icon="list" href="/api-reference/downloads/list_downloads">
    View all downloads before deleting
  </Card>
</CardGroup>


## OpenAPI

````yaml DELETE /download
openapi: 3.0.3
info:
  title: VideoDB Server API
  description: >
    VideoDB Server API for video, audio, and image processing with AI
    capabilities.

    This API provides comprehensive video management, search, indexing, and
    AI-powered features.
  version: 1.0.0
  contact:
    name: VideoDB Support
    url: https://videodb.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.videodb.io
    description: Production server
  - url: https://staging-api.videodb.io
    description: Staging server
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: User authentication and API key management
  - name: Collections
    description: Collection management operations
  - name: Videos
    description: Video upload, processing, and management
  - name: Audio
    description: Audio management operations
  - name: Images
    description: Image management operations
  - name: Search
    description: Content search and indexing
  - name: AI Generation
    description: AI-powered content generation
  - name: Billing
    description: Billing and usage management
  - name: RTStream
    description: Real-time streaming operations
  - name: Utilities
    description: Utility endpoints
  - name: Meeting
    description: Meeting recording and management
  - name: Capture
    description: Capture session management for recording streams
  - name: Editor
    description: Timeline editor operations
  - name: Transcode
    description: Media transcoding operations
  - name: Assets
    description: Cross-collection asset listing
paths:
  /download:
    delete:
      summary: Delete download entry
      parameters:
        - name: download_id
          in: query
          required: true
          schema:
            type: string
            example: download-12345
      responses:
        '200':
          description: Download deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Operation successful
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key for authentication (sk-xxx format)

````