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

# Delete upload session

> Allowed only in `UPLOADING` status. File deletion runs in the background.



## OpenAPI

````yaml /connector-api/openapi.json post /uploading/{upload_uuid}/delete
openapi: 3.1.0
info:
  title: Connector API
  version: 0.1.0
servers:
  - url: https://etl-api-dev2.datawiz.io/api/v1
    description: Connector API
security: []
paths:
  /uploading/{upload_uuid}/delete:
    post:
      tags:
        - Uploading
      summary: Delete upload session
      description: >-
        Allowed only in `UPLOADING` status. File deletion runs in the
        background.
      operationId: clear_upload_files_api_v1_uploading__upload_uuid__delete_post
      parameters:
        - name: upload_uuid
          in: path
          required: true
          schema:
            type: string
            title: Upload Uuid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncOperationResponse'
        '400':
          description: >-
            Upload session not initialized. Body: `{"detail": "Upload session
            not initialized"}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '401':
          description: >-
            Invalid or missing access token. Body: `{"detail": "User not
            authenticated"}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '403':
          description: >-
            upload_uuid does not match the active session. Body: `{"detail":
            "Invalid upload UUID"}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '409':
          description: >-
            Session is not in the required status. Body: `{"detail": {"message":
            "Invalid upload session status", "expected": "...", "actual":
            "..."}}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidSessionStatusErrorResponse'
        '413':
          description: >-
            Request body exceeds size limit (32 MB for ingest, 1 MB for other
            requests).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '503':
          description: Rate limit or concurrent connection limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
      security:
        - Authorization: []
          Client-Id: []
components:
  schemas:
    AsyncOperationResponse:
      properties:
        status:
          type: string
          const: started
          title: Status
          description: Operation was accepted and runs asynchronously.
        message:
          type: string
          title: Message
          description: Human-readable result message.
      type: object
      required:
        - status
        - message
      title: AsyncOperationResponse
    ErrorDetailResponse:
      properties:
        detail:
          anyOf:
            - type: string
            - additionalProperties: true
              type: object
          title: Detail
          description: Error message or structured error object.
      type: object
      required:
        - detail
      title: ErrorDetailResponse
    InvalidSessionStatusErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/InvalidSessionStatusDetail'
      type: object
      required:
        - detail
      title: InvalidSessionStatusErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InvalidSessionStatusDetail:
      properties:
        message:
          type: string
          title: Message
          description: Human-readable error summary.
          default: Invalid upload session status
        expected:
          type: string
          title: Expected
          description: Session status required for this operation.
        actual:
          type: string
          title: Actual
          description: Current session status, or `UNKNOWN` when unavailable.
      type: object
      required:
        - expected
        - actual
      title: InvalidSessionStatusDetail
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    Authorization:
      type: apiKey
      in: header
      name: Authorization
    Client-Id:
      type: apiKey
      in: header
      name: Client-Id

````