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

# Post apitransfers discard

> Cancel a staged upload and remove all traces of it.

Deletes the uploaded bytes from the storage backend, removes the
AssetContent row (which cascades the Transfer row away too). Use this
when the user explicitly rejects a staged upload via the preview drawer.

Distinct from /abort/, which preserves the AssetContent + Transfer for
history (semantics: "transfer failed, may retry").



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/transfers/{id}/discard/
openapi: 3.0.3
info:
  title: Console API
  version: 1.0.0
  description: Central control plane API for the Dataerai platform.
servers:
  - url: https://{server}
    description: Your Dataerai deployment (the API is served under /api)
    variables:
      server:
        default: your-deployment.dataerai.com
        description: Host of your Dataerai deployment
security: []
paths:
  /api/transfers/{id}/discard/:
    post:
      tags:
        - api
      description: |-
        Cancel a staged upload and remove all traces of it.

        Deletes the uploaded bytes from the storage backend, removes the
        AssetContent row (which cascades the Transfer row away too). Use this
        when the user explicitly rejects a staged upload via the preview drawer.

        Distinct from /abort/, which preserves the AssetContent + Transfer for
        history (semantics: "transfer failed, may retry").
      operationId: api_transfers_discard_create
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          required: true
      responses:
        '204':
          description: No response body
      security:
        - cookieAuthCsrfExempt: []
components: {}

````