---
agentTools:
  projectIndex: https://apidocs.macrofab.com/llms.txt
---

# Delete Pending Upload

Remove a pending upload so it is not processed.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "MacroFab API",
    "description": "MacroFab API\n\n**Authentication**\n\nAuthenticate every request by sending your API key in the `X-MacroFab-API-Key` header.\nRequests act as the user that generated the API key.\n\n**Responses**\n\nSend `Accept: application/json` with every request. Some endpoints return an empty response\nwithout it.\n\n**Versions**\n\nEndpoints are versioned in their path (`/api/v2/`, `/api/v3/`, `/api/v4/`, `/api/v5/`), and\ndifferent endpoints are at different versions. Use the version documented here for each\nendpoint.\n",
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://api.macrofab.com"
    }
  ],
  "paths": {
    "/api/v3/pcb/{pcb_id}/{pcb_version}/ingestion/uploads/{filename}": {
      "delete": {
        "tags": [
          "PCB"
        ],
        "summary": "Delete Pending Upload",
        "description": "Remove a pending upload so it is not processed.",
        "responses": {
          "204": {
            "description": "The upload was removed"
          },
          "404": {
            "description": "The PCB, version, or workflow does not exist, or you do not have access to it"
          }
        },
        "security": [
          {
            "apikeyHeader": []
          }
        ]
      },
      "parameters": [
        {
          "name": "pcb_id",
          "in": "path",
          "required": true,
          "description": "The PCB ID",
          "schema": {
            "type": "string",
            "example": "kq47h5"
          }
        },
        {
          "name": "pcb_version",
          "in": "path",
          "required": true,
          "description": "The PCB version number",
          "schema": {
            "type": "integer",
            "example": 1
          }
        },
        {
          "name": "filename",
          "in": "path",
          "required": true,
          "description": "The name of the pending upload",
          "schema": {
            "type": "string",
            "example": "CurveTracer.brd"
          }
        }
      ]
    }
  },
  "components": {
    "securitySchemes": {
      "apikeyHeader": {
        "type": "apiKey",
        "name": "X-MacroFab-API-Key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 251,
      "2": 93,
      "3": 50,
      "4": 34,
      "5": 139,
      "6": 70,
      "7": 0,
      "8": 113,
      "9": 3,
      "10": 149,
      "11": 120
    }
  }
}
```