---
title: "Delete a file or abort upload session"
method: DELETE
path: "/storage/{bucketName}/{path}"
tags: ["Storage Objects"]
---

# Delete a file or abort upload session

`DELETE /storage/{bucketName}/{path}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/storage/{bucketName}/{path}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Delete a file, or abort a resumable upload session.

**File Delete (default):**
Deletes the file at the specified path.

**Abort Session (with X-Upload-Session header):**
Aborts a resumable upload session and cleans up any uploaded parts.
Anonymous sessions must reuse the exact anon key that created the session.

## Path parameters

- `bucketName` string, required
- `path` string, required

## Headers

- `X-Upload-Session` string

## Response `200`

Object deleted or session aborted

## Other responses

- `403`: Access denied by storage policy
- `404`: Object or session not found, or session not owned by this credential
- `429`: The platform user exceeded their billing-cycle bandwidth allowance (aggregate ingress + egress across owned projects). Enforcement is eventual: requests are rejected until the allowance increases or the next anniversary cycle begins.

## Changes

- **2026-09-19** `3a6f365f3f35`: 2 breaking, 2 info
  - added the new path request parameter `bucketName`
  - the response's body type changed from no type to `object` for status `429`
  - added the optional property `code` to the response with the `429` status
  - added the required property `error` to the response with the `429` status
- **2026-09-04** `c2ec82fb8ce8`: 1 info
  - the endpoint scheme security `AnonKey` was added to the API
- **2026-08-27** `bb44e98aba2e`: 2 breaking, 2 warning
  - the response's body type changed from `object` to no type for status `429`
  - removed the required property `error` from the response with the `429` status
  - deleted the `path` request parameter `bucketName`
  - removed the optional property `code` from the response with the `429` status
- **2026-07-27** `bb52784e098a`: 1 info
  - added the optional property `code` to the response with the `429` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/storage/:bucketName/:path/delete.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
