---
title: "Delete dataset"
method: DELETE
path: "/data/{id}"
tags: ["data"]
---

# Delete dataset

`DELETE /data/{id}`

Deletes a dataset. Upon success, it returns the ID of the deleted dataset.

## Path parameters

- `id` number, required

## Query parameters

- `api_key` string, required

## Response `200`

ID of the deleted dataset

- object
  - `data_delete` InlineResponse200DataDelete
    - `id` string — ID of the deleted dataset, a positive integer

## Other responses

- `412` — Precondition failed. An error code and message are returned - 350 - Please provide API key. In order to remove your content, please authenticate. - 351 - Authentication failed. The API key was not valid. Please try to login again, or contact api administrators. - 352 - Dataset does not exists. The data ID could not be linked to an existing dataset. - 353 - Dataset is not owned by you. The dataset is owned by another user. Hence you cannot delete it. - 354 - Dataset is in use by other content. Can not be deleted. The data is used in tasks or runs. Delete other content before deleting this dataset. - 355 - Deleting dataset failed. Deleting the dataset failed. Please contact support team.

---

[API](https://skmtc.net/openml/apis/openml-api.md) · [All operations](https://skmtc.net/openml/apis/openml-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openml/openml-api/revisions/263d3d6ee586/schema)
