---
title: "Remove batch from dataset"
method: POST
path: "/dataset/removeBatch/{datasetId}/{batchId}"
tags: ["Open API/Dataset"]
---

# Remove batch from dataset

`POST /dataset/removeBatch/{datasetId}/{batchId}`

Remove a batch under the dataset, only allowing the deletion of empty batches.

## Path parameters

- `datasetId` integer, required
- `batchId` integer, required

## Headers

- `Authorization` string

## Response `200`

Success

- object
  - `code` string, required — Error code, OK indicates success, while others indicate failure
  - `message` string, required — Error message
  - `data` unknown, required

---

[API](https://skmtc.dev/basic/apis/basicai-cloud-open-plugin-api.md) · [All operations](https://skmtc.dev/basic/apis/basicai-cloud-open-plugin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/basic/basicai-cloud-open-plugin-api/revisions/f6b5a226c6da/schema)
