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

# Abort an upload

> Aborts an upload that has not been completed, and deletes what was uploaded for it. Repeating the call is harmless. Abort the uploads you will not finish: an open upload counts against your organization's open-upload limits until it ends.



## OpenAPI

````yaml delete /platform/files/uploads/{uploadId}
openapi: 3.0.3
info:
  title: ROOTKey Documentation
  description: >-
    Your API of choice for creating, managing, and validating information easily
    and securely!
  termsOfService: https://www.rootkey.ai/legal/privacy-policy
  contact:
    name: ROOTKey
    url: https://www.rootkey.ai/contact
    email: support@rootkey.ai
  version: 1.0.0
servers:
  - description: Production
    url: https://api.rootkey.ai/api-v1/
security:
  - x-api-key: []
tags:
  - name: api-v1-public
    description: Unauthenticated top-level /api-v1 endpoints (health, plans, annual report)
  - name: api-v1-files
    description: >-
      File anchoring, versioning, validation and compliance reporting
      (/api-v1/platform/files)
  - name: api-v1-records
    description: Structured-data record anchoring (/api-v1/platform/records)
  - name: api-v1-vaults
    description: 'Vault lifecycle: create / update / delete (/api-v1/platform/vaults)'
  - name: api-v1-recovery-points
    description: >-
      Backup archives created from vault contents
      (/api-v1/platform/recovery-point)
paths:
  /platform/files/uploads/{uploadId}:
    delete:
      tags:
        - api-v1-files
      summary: Abort an upload
      description: >-
        Aborts an upload that has not been completed, and deletes what was
        uploaded for it. Repeating the call is harmless. Abort the uploads you
        will not finish: an open upload counts against your organization's
        open-upload limits until it ends.
      parameters:
        - name: uploadId
          in: path
          required: true
          description: >-
            The `uploadId` returned by [Start an
            upload](/api-reference/platform/endpoint/files/start-file-upload).
          schema:
            type: string
            pattern: ^upl_[0-9a-f]{32}$
            example: upl_3f2b8c1e5a7d4e9b9c2a1d6e8f0a4b7c
      responses:
        '204':
          description: Aborted.
        '401':
          description: Unauthenticated
        '404':
          description: '`file_upload_not_found`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainErrorResponse'
        '409':
          description: >-
            `file_upload_not_open`: the upload is already being completed, or it
            is finished.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainErrorResponse'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - x-api-key: []
components:
  schemas:
    DomainErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            requestId:
              type: string
            message:
              type: string
            errorCode:
              type: string
            docUrl:
              type: string
            timestamp:
              type: string
              format: date-time
  responses:
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DomainErrorResponse'
  securitySchemes:
    x-api-key:
      type: apiKey
      name: x-api-key
      in: header
      description: >-
        ROOTKey API key (rk_live_... for production, rk_test_... for the test
        network).

````

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