---
title: "Delete file from batch"
method: DELETE
path: "/v2/batches/{batch_id}/files/{filename}"
tags: ["batches"]
---

# Delete file from batch

`DELETE /v2/batches/{batch_id}/files/{filename}`

Delete a file from a batch.

## Path parameters

- `batch_id` integer, required
- `filename` string, required

## Headers

- `Authorization` string, required
- `IB-Context` string

## Response `202`

File deletion request accepted. Poll the deletion job for completion status.

- BatchesDeleteFileFromBatchResponse202 — Empty response body

## Other responses

- `404` — Batch does not exist.

## Changes

- **2026-08-06** `3a4f46d48141` — 1 info
  - api operation id `delete-file-from-batch` removed and replaced with `deleteFileFromBatch`

[Change history](https://skmtc.dev/instabase/apis/api-reference/changes/v2/batches/:batch_id/files/:filename/delete.md)

---

[API](https://skmtc.dev/instabase/apis/api-reference.md) · [All operations](https://skmtc.dev/instabase/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/instabase/api-reference/revisions/804f3e7e0182/schema)
