---
title: "Abort a pending upload batch — nothing is published, staged bytes are reaped"
method: DELETE
path: "/sites/uploads/{batchId}"
tags: ["Uploads"]
---

# Abort a pending upload batch — nothing is published, staged bytes are reaped

`DELETE /sites/uploads/{batchId}`

## Request

- Base URL: `https://api.nippy.host`
- URL: `https://api.nippy.host/sites/uploads/{batchId}`
- Auth: `bearer` (a scheme the document does not define)

## Path parameters

- `batchId` string, required

## Response `204`

## Other responses

- `401`: Not authenticated
- `403`: Not the batch owner
- `404`: Upload batch id not found
- `409`: The batch already finalized or expired

---

[API](https://skmtc.dev/nippy/apis/nippy-backend-api.md) · [All operations](https://skmtc.dev/nippy/apis/nippy-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nippy/apis/nippy-backend-api/revisions/7ab23f040a55?raw)
